After installing grunt with the command npm install -g grunt-cli npm install -g grunt
Run the command grunt -v or grunt and it keeps prompting that 'grunt' is not an internal or external command, nor is it an operable program...
This is my environment variable configuration
Cannot be installed globally
grunt
值要安装grunt-cli
就可以了,然后在%AppData%Roamingnpm
会生成一个grunt.cmd
It means the installation is successful.Guess:
path
The semicolon in the path won’t be a Chinese semicolon, right?Open
Change this file
to
The first two are the two folders under the node installation path