The npm community forum has been discontinued.
To discuss usage of npm, visit the GitHub Support Community.
"npm outdated" will mark packages for update if a wrong formatted package.json is used
What I Wanted to Do
Check if there are outdated packages.
What Happened Instead
There were packages marked for update that shouldn’t be updated.
Replace the last
}foobar at the end of your package.json in order to create a wrong formatted package.json
If you ran
npm outdated on an invalid
package.json, it wants to update packages to the latest version. Instead it should just state, that the package.json is in an invalid format, where and why.
With an Ionic 3 project
Here you can see such a behavior:
First command was done with an invalid package.json.
Second command was done with a valid package.json.