Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm ERR! invalid: [email protected]

Tags:

node.js

  1. Pretty new to Node.
  2. Was preparing to install Babel
  3. So I checked to make sure I hadn't already installed it by running npm list -g --depth=0
  4. Wherein I received this error message:

npm ERR! invalid: [email protected] /usr/lib/node_modules/npm/node_modules/tar/node_modules/minizlib

How do I fix please? Thanks.

Linux 17.10

like image 523
sleeper Avatar asked Jan 17 '18 06:01

sleeper


Video Answer


1 Answers

I ran sudo npm install -g npm@latest to reinstall npm, then I ran npm list -g --depth=0

..and no more error!

like image 82
sleeper Avatar answered Oct 11 '22 12:10

sleeper