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! <>

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

Quite a cool fix was:

root@3180cd952569:~/src# npm install –no-bin-links

Ended up working just fine. Enjoy!

npm info lifecycle pizza-luvrs@1.0.0~install: pizza-luvrs@1.0.0
npm info lifecycle pizza-luvrs@1.0.0~postinstall: pizza-luvrs@1.0.0
npm info lifecycle pizza-luvrs@1.0.0~prepublish: pizza-luvrs@1.0.0
pizza-luvrs@1.0.0 /root/src
`– good-file@6.0.1
`– fs-extra@0.26.7
`– rimraf@2.5.4
`– glob@7.1.1
+– fs.realpath@1.0.0
+– inflight@1.0.6
`– minimatch@3.0.3
`– brace-expansion@1.1.6
+– balanced-match@0.4.2
`– concat-map@0.0.1

npm info ok

Leave a Reply

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

CommentLuv badge