npm ERR! EPROTO: protocol error, symlink ‘../rimraf/bin.js’

So i was trying to spin up a docker app in a node.js docker container but i got the error below:

npm ERR! Linux 4.4.24-boot2docker
npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “install”
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! path ../rimraf/bin.js
npm ERR! code EPROTO
npm ERR! errno -71
npm ERR! syscall symlink

npm ERR! EPROTO: protocol error, symlink ‘../rimraf/bin.js’ -> ‘/root/src/node_modules/.bin/rimraf’
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! /root/src/npm-debug.log

Quite a cool fix was:

[email protected]:~/src# npm install –no-bin-links

Ended up working just fine. Enjoy!

npm info lifecycle [email protected]~install: [email protected]
npm info lifecycle [email protected]~postinstall: [email protected]
npm info lifecycle [email protected]~prepublish: [email protected]
[email protected] /root/src
`– [email protected]
`– [email protected]
`– [email protected]
`– [email protected]
+– [email protected]
+– [email protected]
`– [email protected]
`– [email protected]
+– [email protected]
`– [email protected]

npm info ok
[email protected]:~/src#

Leave a Reply

Your email address will not be published. Required fields are marked *

CommentLuv badge