Grunt CLI未设置系统路径 [英] Grunt cli not setting system path

查看:72
本文介绍了Grunt CLI未设置系统路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经通过grunt网站上的设置说明在服务器上安装了grunt.

I have install grunt on my server via the setup instructions on the grunt website.

使用 npm install -g grunt-cli

但是,我仍然可以让我的控制台识别grunt命令.我可以在系统变量路径目录中看到任何链接,因此我想这可能是问题所在.有谁知道路径目录中应该包含什么内容,以使控制台选择grunt命令.

However I still can get my console to recognize the grunt command. I can see any linking in my system variables path directory so im guessing this is probably the issue. Does anyone know what should be in the path directory to make the console pick up the grunt command.

任何帮助都会很好,我的机器上的Windows服务器上的问题都很好.

Any help would be great, I only have the issue on my windows server on my machine is fine.

错误是

"grunt"一词未被识别为cmdlet,函数,脚本文件或可运行程序的名称;

The term 'grunt' is not recognized as the name of a cmdlet, function, script file, or operable program;

欢呼

推荐答案

如果它未能设置环境变量,则最终以grunt-cli找到它,您需要在path下的系统变量中设置它.

Found it in the end with grunt-cli if it fails to set the enviroment variable you need to set it in your system variables under path.

例如,我的是

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

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

这篇关于Grunt CLI未设置系统路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆