npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Help with npm install err

I am getting an error I can not seem to solve, tried a number of things but not sure how to address, even a hint would be helpful.


Here is the log
pi@raspberrypi:~ $ sudo npm -g install homebridge-mylink
(node:11636) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm ERR! tar.unpack untar error /root/.npm/generic-pool/3.7.1/package.tgz
npm ERR! Error: Invalid Package: expected sinonjs/formatio but found @sinonjs/formatio
npm ERR! at /usr/share/npm/lib/cache/add-local-tarball.js:161:14
npm ERR! at _combinedTickCallback (internal/process/next_tick.js:131:7)
npm ERR! at process._tickCallback (internal/process/next_tick.js:180:9)
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR!

npm ERR! System Linux 4.14.98-v7+
npm ERR! command “/usr/bin/node” “/usr/bin/npm” “-g” “install” “homebridge-mylink”
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
pi@raspberrypi:~ $