Skip to content

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

@erikusaj

Description

@erikusaj

Observing was following issue:

npm WARN face-detection@1.0.0 No repository field.
npm WARN In opencv@3.2.0 replacing bundled version of node-pre-gyp with node-pre-gyp@0.6.28
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 face-detection@1.0.0 No repository field.
npm WARN In opencv@3.2.0 replacing bundled version of node-pre-gyp with node-pre-gyp@0.6.28
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions