[英]Dependency error installing Sails.js globally
Can't install sails.js on my Ubuntu desktop for some reason. 由于某种原因,无法在我的Ubuntu桌面上安装sails.js。 I see the following in the npm log file: 我在npm日志文件中看到以下内容:
Error: no compatible version found: underscore.string@'~2.2.0rc'
Any help much appreciated 任何帮助表示赞赏
EDIT: 编辑:
I've removed nodejs, downloaded and installed the latest version along with npm and now it just hangs at the following: 我已经删除了nodejs,下载并安装了最新版本以及npm,现在它挂在以下位置:
> bson@0.1.8 install /usr/local/lib/node_modules/sails/node_modules/connect-mongo/node_modules/mongodb/node_modules/bson
> (node-gyp rebuild 2> builderror.log) || (exit 0)
EDIT 2: 编辑2:
Actually all I had to is wait 5 minutes to finish installing. 实际上,我只需要等待5分钟即可完成安装。 That's a long time!! 好长时间了!
I'll assume you got nodejs from the chris-lea ppa. 我假设您从chris-lea ppa获得了nodejs。
try sudo npm cache clear
尝试sudo npm cache clear
对于可能与我有同样问题的任何人,我所要做的就是从这里获取最新的nodejs并安装它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.