Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs 由于警告,运行grunt包已中止_Angularjs_Node.js_Gruntjs - Fatal编程技术网

Angularjs 由于警告,运行grunt包已中止

Angularjs 由于警告,运行grunt包已中止,angularjs,node.js,gruntjs,Angularjs,Node.js,Gruntjs,当我尝试在angular.js文件夹上运行grunt包时,会出现警告 C:\Users\Admin\angular.js>grunt package Running "shell:npm-install" (shell) task Warning: Command failed: C:\Windows\system32\cmd.exe /s /c "scripts\npm\install-dependencies.sh" Use --force to continue. Aborted

当我尝试在angular.js文件夹上运行grunt包时,会出现警告

C:\Users\Admin\angular.js>grunt package

Running "shell:npm-install" (shell) task
Warning: Command failed: C:\Windows\system32\cmd.exe /s /c "scripts\npm\install-dependencies.sh"
Use --force to continue.

Aborted due to warnings.

--verbose
运行它以查看错误是什么。您好,先生,当我用--verbose运行它时..这些是错误。。正在运行“shell:npm install”(shell)任务验证配置中是否存在属性shell.npm-install…确定文件:[无文件]选项:stdout、stderr、stdin、failOnError、stdinRawMode=false命令:scripts\npm\install-dependenciences.sh警告:命令失败:C:\Windows\system32\cmd.exe/s/C“scripts\npm\install-dependenciences.sh”使用--force继续。由于警告而中止。您能在Windows计算机上运行shell脚本吗?您的Grunt文件应该有一个
默认值
。它有定义吗?也检查一下。然后以管理员身份运行
cmd提示符
并重试。在运行grunt软件包之前,先生,我运行依赖项和组件的npm安装和bower安装。这可能是npm安装的问题吗?