欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

Docker 升级 npm v3 报错 cross-device link not permitted, rename

发布时间:2024/1/17 编程问答 36 豆豆
生活随笔 收集整理的这篇文章主要介绍了 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的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。