docker / machine

Machine management for a container-centric world
https://docs.docker.com/machine/
Apache License 2.0
6.63k stars 1.96k forks source link

Permission errors with virtualbox #3467

Open ghost opened 8 years ago

ghost commented 8 years ago

Hi, I have many errors when I try to install a node js package on my container .

root@7c43b1eaab8e:/usr/share/nginx/html# npm install gulp-sass
npm ERR! tar.unpack untar error /root/.npm/spdx-license-ids/1.2.1/package.tgz
npm ERR! tar.unpack untar error /root/.npm/spdx-exceptions/1.0.4/package.tgz
npm ERR! tar.unpack untar error /root/.npm/spdx-license-ids/1.2.1/package.tgz
npm WARN deprecated cross-spawn-async@2.2.4: cross-spawn no longer requires a build toolchain, use it instead!
npm ERR! tar.unpack untar error /root/.npm/spdx-license-ids/1.2.1/package.tgz
npm ERR! Linux 4.4.8-boot2docker
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "gulp-sass"
npm ERR! node v4.4.5
npm ERR! npm  v2.15.5
npm ERR! path ../strip-indent/cli.js
npm ERR! code EPROTO
npm ERR! errno -71
npm ERR! syscall symlink

npm ERR! EPROTO: protocol error, symlink '../strip-indent/cli.js' -> '/usr/share/nginx/html/node_modules/gulp-sass/node_modules/gulp-util/node_modules/dateformat/node_modules/meow/node_modules/redent/node_modules/.bin/strip-indent'
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!     /usr/share/nginx/html/npm-debug.log
JouniRajalaComiq commented 8 years ago

if you are trying to do this inside synced folder with windows host? npm uses symlinks and it doesn't work in that case.