繁体   English   中英

无法使用npm安装ShareJS

[英]Unable to install ShareJS with npm

使用VM(无用)Ubuntu 14.04.2 LTS。 npm和nodeJS版本是最新的。

我正在尝试通过以下方式安装shareJS

sudo npm install share@"<0.7"

但这会导致npm错误。

npm ERR! Linux 3.13.0-55-generic
npm ERR! argv "node" "/usr/bin/npm" "install" "share@<0.7"
npm ERR! node v0.12.7
npm ERR! npm  v2.14.1
npm ERR! path ../coffee-script/bin/coffee
npm ERR! code EPROTO
npm ERR! errno -71

npm ERR! EPROTO, symlink '../coffee-script/bin/coffee'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
npm ERR! Linux 3.13.0-55-generic
npm ERR! argv "node" "/usr/bin/npm" "install" "share@<0.7"
npm ERR! node v0.12.7
npm ERR! npm  v2.14.1
npm ERR! path npm-debug.log.8eb898407f81b59ca45e8e0a6a951820
npm ERR! code ETXTBSY
npm ERR! errno -26

认为node或npm版本存在问题,请重新安装它们,但这没有效果。 外观也类似于许可证过期问题,但已于一个月前关闭。

我只是复制了您的命令,它对我有用。

我的机器是:

Ubuntu 14.4 64位

Node js版本:v0.10.38 Npm版本:2.9.0

我认为您必须检查此版本。 请检查是否与此版本匹配。

祝好运

解决方案是添加--no-bin-links标志。

npm install --no-bin-links  share@"<0.7"

希望那对某人有用。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM