Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/366.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
Javascript Grunt未添加到环境变量路径_Javascript_Node.js_Windows 8_Gruntjs_Npm - Fatal编程技术网

Javascript Grunt未添加到环境变量路径

Javascript Grunt未添加到环境变量路径,javascript,node.js,windows-8,gruntjs,npm,Javascript,Node.js,Windows 8,Gruntjs,Npm,我使用以下命令安装了Grunt cli npm安装-g grunt cli 然后我创建了package.json和Grunfile.js并运行 npm安装-S grunt 但是Windows不知道grunt。它说“grunt”不被识别为内部或外部命令” 在控制台上键入path,不会显示Grunt,并且其中Grunt也会失败 在Windows 8计算机上以管理员身份执行所有操作 这个安装有什么问题 obs:它安装在哪里?npm ls-g——深度=0的输出是什么?@Jesselveton空的

我使用以下命令安装了Grunt cli

npm安装-g grunt cli

然后我创建了package.json和Grunfile.js并运行

npm安装-S grunt

但是Windows不知道
grunt
。它说“grunt”不被识别为内部或外部命令”

在控制台上键入
path
,不会显示Grunt,并且
其中Grunt
也会失败

在Windows 8计算机上以管理员身份执行所有操作

这个安装有什么问题


obs:它安装在哪里?

npm ls-g——深度=0的输出是什么?@Jesselveton
空的