I want to install SailsJs using Node Package Manager.
https://github.com/balderdashy/sails-docs/blob/master/getting-started/getting-started.md
I try to install with the below command on terminal -
sudo npm -g install sails
But it fails with an error -
npm ERR! Error: ENOENT, open '/Users/.../node_modules/sails/node_modules/grunt-contrib-watch/node_modules/gaze/package.json'
Seems like there is some problem with the gaze package.
And I am not sure how to fix this. The full error stack is here -
Please help me with a way to fix this.
Try sudo npm install -g npm
to update your npm version
and try to npm cache clean