node.jsnpmsails.jsgrunt-contrib-watch

Installing Node Sailsjs package with NPM


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 -

https://gist.github.com/bhagaban/ebf7509c69b52f63aac5#file-failure-with-installing-sailisjs-using-npm

Please help me with a way to fix this.


Solution

  • Try sudo npm install -g npm to update your npm version and try to npm cache clean