Docker 升级 npm v3 报错 cross-device link not permitted, rename
生活随笔
收集整理的这篇文章主要介绍了
Docker 升级 npm v3 报错 cross-device link not permitted, rename
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
报错内容
npm ERR! Linux 4.1.19-boot2docker npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "update" "-g" npm ERR! node v5.9.0 npm ERR! npm v3.7.3 npm ERR! path /usr/local/lib/node_modules/npm/node_modules/glob npm ERR! code EXDEV npm ERR! errno -18 npm ERR! syscall renamenpm ERR! EXDEV: cross-device link not permitted, rename '/usr/local/lib/node_modules/npm/node_modules/glob' -> '/usr/local/lib/node_modules/npm/node_modules/.glob.DELETE' 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! /var/www/npm-debug.log npm ERR! code 1解决方案:使用 curl 安装
curl -L https://npmjs.org/install.sh | sh
总结
以上是生活随笔为你收集整理的Docker 升级 npm v3 报错 cross-device link not permitted, rename的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: Ubuntu 14 查看 docker中
- 下一篇: cenos 下的一些常用命令及技巧收集篇