Skip to content

Fixes extraneous and missing dependencies in `package-lock.json`

Notifications You must be signed in to change notification settings

mtibben/package-lock-fix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

package-lock-fix

It seems package-lock.json files can sometimes get into states where npm complains about extraneous and missing dependencies.

npm ERR! extraneous: [email protected] ./node_modules/fsevents/node_modules/is-fullwidth-code-point
npm ERR! extraneous: [email protected] /Users/michael/src/github.com/99designs/spa/node_modules/fsevents/node_modules/nopt
npm ERR! missing: nopt@^4.0.1, required by [email protected]
npm ERR! missing: yallist@^3.0.2, required by [email protected]

This script attempts to resolve these issues using npm dedupe, npm prune and npm install --no-save, in order to avoid updating transitive dependencies.

About

Fixes extraneous and missing dependencies in `package-lock.json`

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages