小编Mfr*_*Mfr的帖子

安装pm2时出错

我想在rasspberry pi 3上安装pm2:

npm install -g pm2
Run Code Online (Sandbox Code Playgroud)

但我得到这个错误:

(node:5118) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use 
os.tmpdir() instead.
npm ERR! Error: Method Not Allowed
npm ERR!     at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
npm ERR!     at /usr/share/npm/lib/cache/add-named.js:203:12
npm ERR!     at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)
npm ERR!     at FSReqWrap.oncomplete (fs.js:135:15)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 4.9.59-v7+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "pm2"
npm …
Run Code Online (Sandbox Code Playgroud)

linux npm raspberry-pi pm2

4
推荐指数
1
解决办法
2438
查看次数

标签 统计

linux ×1

npm ×1

pm2 ×1

raspberry-pi ×1