NPM ignores git hashes in lockfile

(Bart Riepe) #1

What I Wanted to Do

I wanted to install the exact version of all dependencies specified in the my package-lock.json. Which is kind of the point of the file.

What Happened Instead

NPM went and installed the latest version of my git based dependencies.

Reproduction Steps



I do not understand who, or why anyone thought this was an acceptable idea. There is no other package manager in existence where a lock file is not an actual lock on what packages get installed when you run ‘install’.

Platform Info

$ npm --versions
$ node -p process.platform