Node Grunt error enoent stat roaming npm


If you are working on protractor or any similar application, the prerequisite is to install node and grunt. Installing node is a child's play but if you are trying to install grunt

npm install -g grunt-cli

It bombs and says  Error: ENOENT, stat 'C:\Users\Ady\AppData\Roaming\npm'

Solution: Manually creating a folder named 'npm' in the path that it specifies , in this case C:\Users\Ady\AppData\Roaming\npm

Reason: a bug in latest NodeJS for Windows installable

Tip: Run the command prompt as administrator.

Comments

Popular posts from this blog

Software Testing @ Microsoft

Trim / Remove spaces in Xpath?