Grunt is not working for all Windows users. Some users are facing some issues, when I run npm install
command; it prints a message as below.
E:\\Wor
On Windows 8, Grunt needs to have the following added to the PATH
:
C:\Users\your_username\AppData\Roaming\npm
On some systems, the number of characters allowable in the PATH is limited, and this can cause the correct path needed by grunt to not be added, even after npm install -g grunt-cli
is run. Some settings (for example for certain programs you have installed) can be safely removed from the PATH, as they're generally there as a failsafe and often aren't required. If you have this issue:
PATH
(This PC > right-click > Properties > Advanced system settings > Environment Variables > 'Edit' the 'Path' user variables for the current user, and copy the 'Variable value' and save it somewhere)PATH
, and add in the path C:\Users\your_username\AppData\Roaming\npm
Also, make sure that after installing the Grunt CLI and adding the path, that you close any open command windows and re-open them before trying a Grunt