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

See https://github.com/npm/npm/issues/18095

Details

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
6.4.1
$ node -p process.platform
v8.11.4