I want to install SailsJs using Node Package Manager.
我想使用Node Package Manager安装SailsJs。
https://github.com/balderdashy/sails-docs/blob/master/getting-started/getting-started.md
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'
npm犯错!错误:ENOENT,打开' /用户/…/ node_modules /帆/ node_modules / grunt-contrib-watch / node_modules /凝视/ 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.
请帮我想个办法解决这个问题。
1 个解决方案
#1
3
Try sudo npm install -g npm
to update your npm version and try to npm cache clean
尝试sudo npm安装-g npm来更新npm版本并尝试npm缓存清理
#1
3
Try sudo npm install -g npm
to update your npm version and try to npm cache clean
尝试sudo npm安装-g npm来更新npm版本并尝试npm缓存清理