Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does 'invalid' mean when using npm list?

Tags:

node.js

npm

bower

I am new to nodejs and i had just installed bower module globally. Ever since then, npm list command gives the following output which I searched for on the web but couldn't find any help :

**npm ERR! invalid: [email protected] /usr/local/lib/node_modules/bower/node_modules/chalk   npm ERR! invalid: [email protected] /usr/local/lib/node_modules/bower/node_modules/chalk/node_modules/has-ansi/node_modules/ansi-regex   npm ERR! invalid: [email protected] /usr/local/lib/node_modules/bower/node_modules/update-notifier/node_modules/configstore   npm ERR! invalid: [email protected] /usr/local/lib/node_modules/bower/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/got/node_modules/object-assign   npm ERR! invalid: [email protected] /usr/local/lib/node_modules/bower/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/registry-url   npm ERR! invalid: [email protected] /usr/local/lib/node_modules/bower/node_modules/update-notifier/node_modules/string-length/node_modules/strip-ansi   npm ERR! not ok code 0** 

The rest of the output is normal and lists the installed modules. Can anyone explain what's going on?

like image 247
user2229167 Avatar asked Sep 06 '14 03:09

user2229167


People also ask

How do I resolve npm errors?

If your npm is broken: On Mac or Linux, reinstall npm. Windows: If you're on Windows and you have a broken installation, the easiest thing to do is to reinstall node from the official installer (see this note about installing the latest stable version).

Why does it say npm is not recognized?

> npm --version 'npm' is not recognized as an internal or external command, operable program or batch file. The error above happens when the Windows operating system doesn't know what to do with the npm command. To fix the error, you need to make sure that the Node executable file is available under your PATH setting.

Why is my npm install failing?

The error in NPM, 'error package install failed, see above', can occur when the user creates a new project in Angular using Node. js using VS code. This means that NPM is corrupted in your system, and must reinstall NPM.


1 Answers

I was getting this error having the same package installed both in "dependencies" and "devDependencies" with different versions.

like image 140
aaaristo Avatar answered Oct 06 '22 06:10

aaaristo