Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/37.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
Node.js Grunt cli未设置系统路径_Node.js_Npm_Gruntjs_Grunt Cli - Fatal编程技术网

Node.js Grunt cli未设置系统路径

Node.js Grunt cli未设置系统路径,node.js,npm,gruntjs,grunt-cli,Node.js,Npm,Gruntjs,Grunt Cli,我已通过grunt网站上的安装说明在我的服务器上安装grunt 使用npm安装-g grunt cli 但是,我仍然可以让我的控制台识别grunt命令。我可以在我的系统变量路径目录中看到任何链接,所以我猜这可能就是问题所在。有人知道path目录中应该有什么让控制台接收grunt命令吗 任何帮助都将是巨大的,我只有在我的机器上的windows服务器上的问题是好的 错误是 术语“grunt”不能识别为cmdlet、函数、脚本文件或可操作程序的名称 Cheers最后通过grunt cli找到了它,如果

我已通过grunt网站上的安装说明在我的服务器上安装grunt

使用
npm安装-g grunt cli

但是,我仍然可以让我的控制台识别grunt命令。我可以在我的系统变量路径目录中看到任何链接,所以我猜这可能就是问题所在。有人知道path目录中应该有什么让控制台接收grunt命令吗

任何帮助都将是巨大的,我只有在我的机器上的windows服务器上的问题是好的

错误是

术语“grunt”不能识别为cmdlet、函数、脚本文件或可操作程序的名称


Cheers

最后通过grunt cli找到了它,如果它无法设置环境变量,则需要在path下的系统变量中设置它

例如,我的


C:\Documents and Settings\Administrator.#######\Application Data\npm

当前的grunt版本会自动执行该操作,除非您的文件系统没有写入权限。

我在PowerShell中担任管理员时就是这样。奇怪的