Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does the "invalid"-tag mean in `npm list`?

Given the following snippet of npm list output:

...
├─┬ [email protected] invalid
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
...

I asked myself: "What does invalid mean?" However, all I could find in the documentation about it is the following:

[npm list] will print out extraneous, missing, and invalid packages. --source

...So now I'm asking you.

like image 478
Avaq Avatar asked Oct 15 '25 09:10

Avaq


1 Answers

The invalid tag appears when the version of the installed dependency does not match the version required in package.json. Often this will occur when a dependency is required in dependencies as well as an incompatible version in devDependencies.

like image 53
Avaq Avatar answered Oct 18 '25 02:10

Avaq