草庐IT

task_registry

全部标签

node.js - 使用 npm 链接时如何修复 "Task is not in your gulpfile"错误?

我们有一堆共享通用gulp逻辑的应用程序,所以我们制作了一个gulp插件,其中包含一堆自定义任务。但是,我们希望避免为我们开发的每个应用程序安装gulp+我们的插件(以及一半的互联网)。理想情况下,我想这样做:npminstall-ggulpnpminstall-g那么对于每个应用,我们只需要做:npmlinkgulpnpmlink虽然这可行,但问题是gulp不再识别我们的任何自定义gulp任务。我运行的任何gulp命令都会导致:[15:16:51]Usinggulpfile/workspace/my-app/gulpfile.js[15:16:51]Task'dev'isnotiny

node.js - 如何解决返回 ENOAUDIT : Your configured registry does not support audit requests? 的 npm 审计

这最近发生了,除了添加一些额外的依赖项之外,我不知道我可能会做些什么来破坏它。我正在使用https://registry.npmjs.org/(默认)。日志文件的相关部分如下。有没有人见过类似的东西?我只在一些旧的错误报告中看到过这一点。6infoauditSubmittingpayloadof66980bytes7httpfetchPOST500https://registry.npmjs.org/-/npm/v1/security/audits548ms8verbosestackError:Yourconfiguredregistry(https://registry.npmjs.

angularjs - 警告 : Running "compass:server" (compass) task

D:\Projects\mallspk>gruntserveRunning"serve"taskRunning"clean:server"(clean)task>>0pathscleaned.Running"wiredep:app"(wiredep)taskRunning"wiredep:test"(wiredep)taskRunning"wiredep:sass"(wiredep)taskRunning"concurrent:server"(concurrent)taskWarning:Running"compass:server"(compass)taskWarning:Comma

asp.net - 使用 HttpClient 进行测试时,Task.Run 永远不会完成

今天我在使用异步ApiControllers创建WebAPI时遇到了问题。我使用的是MongoDB,由于C#驱动程序不支持异步,所以我尝试在我的存储库层中实现它。Building存储库中生成的方法如下所示:publicasyncTask>GetAll(){vartcs=newTaskCompletetionSource>();awaitTask.Run(()=>{varc=this.MongoDbCollection.FindAll();tcs.SetResult(c);});returnawaittcs.Task;}现在,当使用NUnit自行测试存储库时,这可以完美运行。但是当从Co

asp.net - 使用 HttpClient 进行测试时,Task.Run 永远不会完成

今天我在使用异步ApiControllers创建WebAPI时遇到了问题。我使用的是MongoDB,由于C#驱动程序不支持异步,所以我尝试在我的存储库层中实现它。Building存储库中生成的方法如下所示:publicasyncTask>GetAll(){vartcs=newTaskCompletetionSource>();awaitTask.Run(()=>{varc=this.MongoDbCollection.FindAll();tcs.SetResult(c);});returnawaittcs.Task;}现在,当使用NUnit自行测试存储库时,这可以完美运行。但是当从Co

node.js - 咕噜声错误 : cannot find module 'load-grunt-tasks'

当我使用grunt命令时,它显示以下错误:$gruntLoading"Gruntfile.js"tasks...ERROR>>Error:Cannotfindmodule'load-grunt-tasks'Warning:Task"default"notfound.Use--forcetocontinue.Abortedduetowarnings.ExecutionTime(2015-02-0718:05:42UTC)loadingtasks339ms███████████████████████████████████████████████99%Total344ms我已经尝试过-n

javascript - AWS Lambda 错误 : "Cannot find module '/var/task/index'"

Node.jsAlexa任务问题我目前正在通过AWSLambda编写Node.jsAlexa任务,并且一直在尝试编写一个函数,该函数从OpenWeatherAPI接收信息并将其解析为名为weather的变量。相关代码如下:varrequest=require('request');varweather="";functionisBadWeather(location){varendpoint="http://api.openweathermap.org/data/2.5/weather?q="+location+"&APPID=205283d9c9211b776d3580d5de5d6

docker 登录: Error when manually logging into private Registry

我无法从CLI手动登录我的私有(private)GitLabDocker注册表:#dockerlogin-u"${DOCKER_USER}"-p"${DOCKER_PASS}""${DOCKER_URL}"errorgettingcredentials-err:exitstatus1,out:`CannotautolaunchD-BuswithoutX11$DISPLAY`系统信息:Ubuntu18.04docker-ce18.03.1~ce~3-0~ubuntu(来自官方仓库,无安装脚本)没有任何用户的~/.docker/config.json并且我正在以root身份执行docker

docker - Docker 推送到私有(private)注册表的 X-Registry-Auth 的内容是什么

使用RESTAPI将Docker镜像推送到私有(private)注册表时,X-Registry-Authheader的内容应该是什么??根据UsingDockerAPItopushtoprivateregistry,需要X-Registry-Authheader。https://groups.google.com/forum/#!topic/docker-user/vXcA8fsCNZM建议该值应该是格式为base64编码的JSON字符串:{'username':string,'password':string,'email':string,'serveraddress':string

docker - GCP 容器推送不起作用 - "denied: Please enable Google Container Registry API in Cloud Console at ..."

我在将docker镜像上传到GCPContainer注册表时遇到问题。我在关注instructionshere.正如您在下面的屏幕截图中看到的,我已经:登录到我的谷歌云shell并通过dockerfile构建了一个docker镜像正确标记了我的图片(我认为)尝试使用正确的命令推送图像(我认为)但是,我收到此错误:拒绝:PleaseenableGoogleContainerRegistryAPIinCloudConsoleathttps://console.cloud.google.com/apis/api/containerregistry.googleapis.com/overvie