npm install Error:EPROTO: protocol error, symlink '../mime/cli.js' -> '/vagrant/src/nodejs/node_modules/express/node_modules/send/node_modules/.bin/mime'

我在ubuntu上使用npm安装依赖是出现下面错误:

npm ERR! Linux 3.13.0-101-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "express"
npm ERR! node v4.6.2
npm ERR! npm v2.15.11
npm ERR! path ../mime/cli.js
npm ERR! code EPROTO
npm ERR! errno -71
npm ERR! syscall symlink

npm ERR! EPROTO: protocol error, symlink '../mime/cli.js' -> '/vagrant/src/nodejs/node_modules/express/node_modules/send/node_modules/.bin/mime'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR! /vagrant/src/nodejs/npm-debug.log

我的解决办法是安装时加一个--no-bin-links标记:

npm install --no-bin-links

上一篇:[原]Jenkins(二)---jenkins之Git+maven+jdk+tomcat


下一篇:SSL backend error when using OpenSSL pycurl install error