在Windows上的Docker中安装节点模块在创build符号链接时失败
我有一个在Windows中运行的nodejs docker实例。 我已经挂载了一个启用写入的Windows目录到docker实例。 我正在尝试安装shelljs到我的项目,但它失败,出现以下错误:
npm ERR! Linux 4.0.9-boot2docker npm ERR! argv "/opt/nodejs/bin/node" "/usr/bin/npm" "install" "shelljs" npm ERR! node v4.1.2 npm ERR! npm v2.14.4 npm ERR! path ../shelljs/bin/shjs npm ERR! code EPROTO npm ERR! errno -71 npm ERR! syscall symlink npm ERR! EPROTO: protocol error, symlink '../shelljs/bin/shjs' -> '/home/app/meteor-webpack-react/node_modules/.bin/shjs' npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! <https://github.com/npm/npm/issues> npm ERR! Linux 4.0.9-boot2docker npm ERR! argv "/opt/nodejs/bin/node" "/usr/bin/npm" "install" "shelljs" npm ERR! node v4.1.2 npm ERR! npm v2.14.4 npm ERR! path npm-debug.log.907b6eb81436ba935104c98d206fb37c npm ERR! code ETXTBSY npm ERR! errno -26 npm ERR! syscall rename npm ERR! ETXTBSY: text file is busy, rename 'npm-debug.log.907b6eb81436ba935104c98d206fb37c' -> 'npm-debug.log' 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! /home/app/meteor-webpack-react/npm-debug.log
请注意,我已启用符号链接创build( http://www.ahtik.com/blog/fixing-your-virtualbox-shared-folder-symlink-error/ ),他们可以通过ln -s手动完成。 我以pipe理员身份运行一台机器。
任何想法为什么符号链接失败。 我以为这是因为npmcaching在虚拟机试图符号链接到Windows目录,但试图将caching移动到Windows目录也失败了(npm config set cache〜/ .npm –global)
你确定你已经安装了适用于VirtualBox的正确版本的Virtualbox Extension Pack吗? 通常这是罪魁祸首。
- 在docker集装箱升级后,NPM会中断
- 当在Docker for Windows上安装node-sass时,npm系统调用符号链接错误-95
- 从docker开始npm开始?
- 如何在Docker容器中安装全局的angular-cli?
- Docker – 为什么这个express.js容器有一个暴露/发布的端口拒绝连接? (使用boot2docker)
- 在Azure上通过Docker-compose部署nodeJS aps
- 使用node.js应用程序启动Docker容器会产生错误; 抱怨PATH
- 用于打开和closures代理的Dockerfile
- 如何dockerize我的nodejs快递应用程序托pipe在亚马逊linux ami?