草庐IT

Grunt-cli

全部标签

node.js - NPM:运行 npm 时未找到 npm-cli.js

通常我可以使用npm安装库,但今天在安装yeoman时遇到了这个错误。请帮助找出根本原因。D:\Works\phonegap\ionic\todo>npminstall-gyomodule.js:340throwerr;^Error:Cannotfindmodule'C:\ProgramFiles\nodejs\node_modules\npm\bin\node_modules\npm\bin\npm-cli.js'atFunction.Module._resolveFilename(module.js:338:15)atFunction.Module._load(module.js:

node.js - "Fatal error: Unable to find local grunt."运行 "grunt"命令时

我使用以下命令卸载了grunt。npmuninstall-ggrunt然后我再次使用以下命令安装了grunt。npminstall-ggrunt-cli访问以下链接:https://npmjs.org/package/grunt-html我想用上面的grunt插件但是当我运行grunt命令时,它给了我以下错误:D:\nodeJS\node_modules\grunt-html>gruntgrunt-cli:Thegruntcommandlineinterface.(v0.1.6)Fatalerror:Unabletofindlocalgrunt.Ifyou'reseeingthisme

node.js - "Fatal error: Unable to find local grunt."运行 "grunt"命令时

我使用以下命令卸载了grunt。npmuninstall-ggrunt然后我再次使用以下命令安装了grunt。npminstall-ggrunt-cli访问以下链接:https://npmjs.org/package/grunt-html我想用上面的grunt插件但是当我运行grunt命令时,它给了我以下错误:D:\nodeJS\node_modules\grunt-html>gruntgrunt-cli:Thegruntcommandlineinterface.(v0.1.6)Fatalerror:Unabletofindlocalgrunt.Ifyou'reseeingthisme

javascript - grunt (minimatch/glob) 文件夹排除

我有一种情况,我正在尝试使用grunt对代码库进行lint,不包括特定文件夹。grunt在后台使用minimatch(类似于bsdglob)来匹配文件,但我似乎无法弄清楚如何对文件夹进行.gitignore样式的排除。我想摄取这个:忽略并匹配这些:/folder/path/here/to/something/ok.js/another/folder/path.js/test.js但不匹配这些:/folder/ignoreme/something.js/folder/path/here/to/ignoreme/metoo/file.js这将匹配所有内容,包括ignoreme:/**/*.

javascript - grunt (minimatch/glob) 文件夹排除

我有一种情况,我正在尝试使用grunt对代码库进行lint,不包括特定文件夹。grunt在后台使用minimatch(类似于bsdglob)来匹配文件,但我似乎无法弄清楚如何对文件夹进行.gitignore样式的排除。我想摄取这个:忽略并匹配这些:/folder/path/here/to/something/ok.js/another/folder/path.js/test.js但不匹配这些:/folder/ignoreme/something.js/folder/path/here/to/ignoreme/metoo/file.js这将匹配所有内容,包括ignoreme:/**/*.

node.js - Grunt watch 错误 - 等待... fatal error : watch ENOSPC

为什么我在运行watch任务时会收到Waiting...Fatalerror:watchENOSPC?我该如何解决这个问题? 最佳答案 在做了一些研究后找到了解决方案。运行以下命令。echofs.inotify.max_user_watches=524288|sudotee-a/etc/sysctl.conf&&sudosysctl-p对于ArchLinux,将此行添加到/etc/sysctl.d/99-sysctl.conf:fs.inotify.max_user_watches=524288

node.js - Grunt watch 错误 - 等待... fatal error : watch ENOSPC

为什么我在运行watch任务时会收到Waiting...Fatalerror:watchENOSPC?我该如何解决这个问题? 最佳答案 在做了一些研究后找到了解决方案。运行以下命令。echofs.inotify.max_user_watches=524288|sudotee-a/etc/sysctl.conf&&sudosysctl-p对于ArchLinux,将此行添加到/etc/sysctl.d/99-sysctl.conf:fs.inotify.max_user_watches=524288

wordpress - Docker 编写 php-fpm、nginx、mysql 并在 nginx 上使用 wp-cli

我将3个单独的容器链接在一起:nginx:1.10-alpinephp:7.0.6-fpm-alpinemariadb:5.5我的目标是在将源代码复制到nginx容器之前运行wp-cli安装。问题:尝试从Dockerfile(my-nginx镜像)运行wp-cli的安装脚本工作正常,但是当我尝试运行任何wp-cli命令时,它返回错误:env:can'texecute'php':没有这样的文件或目录wp-cli安装脚本(带有正确的依赖项)也适用于dockerfile.php-fpm(my-php镜像),它也会返回错误:Error:YIKES!看起来您正在以root身份运行它。您可能打算以

wordpress - Docker 编写 php-fpm、nginx、mysql 并在 nginx 上使用 wp-cli

我将3个单独的容器链接在一起:nginx:1.10-alpinephp:7.0.6-fpm-alpinemariadb:5.5我的目标是在将源代码复制到nginx容器之前运行wp-cli安装。问题:尝试从Dockerfile(my-nginx镜像)运行wp-cli的安装脚本工作正常,但是当我尝试运行任何wp-cli命令时,它返回错误:env:can'texecute'php':没有这样的文件或目录wp-cli安装脚本(带有正确的依赖项)也适用于dockerfile.php-fpm(my-php镜像),它也会返回错误:Error:YIKES!看起来您正在以root身份运行它。您可能打算以

amazon-web-services - 无需 AWS CLI 从本地 docker 容器访问 S3 存储桶

存储桶可公开访问,但有一个ACL仅供授权用户访问。我可以从本地机器访问S3存储桶,因为我已经为它配置了AWSCLI。有没有什么方法可以从我的机器上运行的docker实例访问存储桶,而无需在docker镜像上安装和配置AWSCLI?编辑:对于那些不了解S3的工作原理并且反对该问题的人,可以公开访问存储桶-如果命中顶级存储桶URI,则会列出其所有内容;但是由于ACL限制,这些项目都无法访问。我知道这可能是一个糟糕的设计,但这不是这个问题的重点。我可以从我的机器访问所有项目,因为我已将AWSCLI配置为允许访问应用程序AWS开发工具包。但是,我不能从Docker容器中访问它们。如果不在doc