【发布时间】:2020-03-06 11:53:21
【问题描述】:
npm 错误! Linux 3.4.0+
npm 错误! argv “/usr/bin/nodejs” “/usr/bin/npm” “安装” “lodash”
npm 错误!节点 v5.10.1
npm 错误! npm v3.8.3
npm 错误!路径 /root/test/node_modules/.staging/lodash-9a2aabe2
npm 错误!代码 EACCES
npm 错误!错误号 -13
npm 错误!系统调用重命名
npm 错误!错误:EACCES:权限被拒绝,重命名 '/root/test/node_modules/.staging/lodash-9a2aabe2' -> '/root/test/node_modules/lodash'
npm 错误!在 destStatted (/usr/lib/node_modules/npm/lib/install/action/finalize.js:25:7)
npm 错误!在 FSReqWrap.oncomplete (fs.js:82:15)
npm 错误!
npm 错误!错误:EACCES:权限被拒绝,重命名 '/root/test/node_modules/.staging/lodash-9a2aabe2' -> '/root/test/node_modules/lodash'
npm 错误!在错误(本机)
npm 错误! [错误:EACCES:权限被拒绝,重命名 '/root/test/node_modules/.staging/lodash-9a2aabe2' -> '/root/test/node_modules/lodash']
npm 错误!
npm 错误!请尝试以 root/管理员身份再次运行此命令。
npm 错误!请在任何支持请求中包含以下文件:
npm 错误! /root/test/npm-debug.log
【问题讨论】:
标签: node.js ubuntu remote-access