face-detection-nodejs icon indicating copy to clipboard operation
face-detection-nodejs copied to clipboard

npm ERR! EPROTO: protocol error, symlink '../mkdirp/bin/cmd.js' -> '/vagrant/node_modules/.bin/mkdirp'

Open erikusaj opened this issue 8 years ago • 1 comments

Observing was following issue:

npm WARN [email protected] No repository field.
npm WARN In [email protected] replacing bundled version of node-pre-gyp with [email protected]
npm ERR! Linux 3.19.0-25-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v5.10.1
npm ERR! npm  v3.8.3
npm ERR! path ../mkdirp/bin/cmd.js
npm ERR! code EPROTO
npm ERR! errno -71
npm ERR! syscall symlink

npm ERR! EPROTO: protocol error, symlink '../mkdirp/bin/cmd.js' -> '/vagrant/node_modules/.bin/mkdirp'
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/npm-debug.log

As it appears to be some issue with node-pre-gyp I tried installing module node-pre-gyp globally. Issue was reproduced.

Tried taking ownership as suggested in Fixing Npm Permissions and installing once again:

sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}
npm install node-pre-gyp -g

Success.

npm WARN [email protected] No repository field.
npm WARN In [email protected] replacing bundled version of node-pre-gyp with [email protected]
npm ERR! Linux 3.19.0-25-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v5.10.1
npm ERR! npm  v3.8.3
npm ERR! path ../mkdirp/bin/cmd.js
npm ERR! code EPROTO
npm ERR! errno -71
npm ERR! syscall symlink

npm ERR! EPROTO: protocol error, symlink '../mkdirp/bin/cmd.js' -> '/vagrant/node_modules/.bin/mkdirp'
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/npm-debug.log
npm ERR! code 1

Searching online brought me to Symbolic links with .. result in protocol error on vboxsf + 5.0.4:

  • VBox 5.0.6 contains the fix.

Note: my VBox is apperntly old: Version 5.0.16 r105871

erikusaj avatar May 20 '16 12:05 erikusaj

This doesn't sound like an issue with this repository?

lukaswhite avatar May 20 '16 12:05 lukaswhite