在Rasberry Pi上安装任何npm模块时出错-

时间:2018-08-27 11:31:57

标签: node.js raspberry-pi npm-install

所以我正在一个带有Raspberry Pi计算模块3的项目中,在安装了nodejs和npm之后,我想安装其他一些npm模块,但是我总是会遇到这个错误:

(node:2075) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm ERR!     at RegClient.<anonymous> (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:159:18)
npm ERR!     at cb (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:57:9)
npm ERR!     at RegClient.<anonymous> (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:148:10)
npm ERR!     at cb (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:158:9)
npm ERR!     at RegClient.<anonymous> (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:251:20)
npm ERR!     at Request._callback (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:230:20)
npm ERR!     at self.callback (/usr/lib/nodejs/request/index.js:148:22)
npm ERR!     at emitOne (events.js:121:20)
npm ERR!     at ClientRequest.self.clientErrorHandler (/usr/lib/nodejs/request/index.js:258:10)
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.14.62-v7+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "serialport"
npm ERR! cwd /home/pi
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/pi/npm-debug.log
npm ERR! not ok code 0

谢谢!

0 个答案:

没有答案