Gruntjs 如何在windows中全局安装grunt?

Gruntjs 如何在windows中全局安装grunt?,gruntjs,Gruntjs,如何在windows系统上本地和全局安装grunt。在windows中,我们需要在windows环境变量中注册路径:- Windows :npm install -g grunt-cli Windows :npm install grunt-contrib-jshint --save-dev Windows :grunt grunt command not found 在windows环境变量中注册grunt的路径如何?我已经给了环境变量路径:C:\Program Files\nodejs\n

如何在windows系统上本地和全局安装grunt。

在windows中,我们需要在windows环境变量中注册路径:-

Windows :npm install -g grunt-cli
Windows :npm install grunt-contrib-jshint --save-dev
Windows :grunt
grunt command not found

在windows环境变量中注册grunt的路径如何?我已经给了环境变量路径:C:\Program Files\nodejs\node\u modules\npm\bin\仍然是相同的错误:-grunt命令未找到这一个应该可以通过C:\Users\username\AppData\Roaming\npm\node\u modules\grunt\bin工作是的,这对我来说可以
C:\Users\Username\AppData\Roaming\npm

Close and open terminal(cmd,git-bash,etc)