Re:Node 8.3.0 released
by whatever_dude on Thursday August 10, 2017 @01:30PM
(#14982001)
I actually had the opposite happening: a project was having some real issues with not installing proper dependencies until we started using npm 5.3+. Things work fine now and are a bit more deterministic it seems.
It's an odd project with a lot of super strange peer dependencies, many of them in beta or as pre-releases, so I'm sure it's nothing that happens all the time (the joys of using React Native and Relay where everything is at an imaginary release state). But still glad npm 5 made it work consistently.
Same. One team is running npm@3 installs twice in CI to pick up half a dozen modules that don't install the first time. On another project I managed to massage the package.json to stop it from happening.
Do you any dependencies or subdependencies with git urls? I've previously run into https://github.com/npm/npm/issues/17189, and I solved it by ... updating the dependency to a newer version that switched away from having subdependency pulled from git.
Good news, I just looked at that bug again and it turns out it's no longer reproducible in the latest version of npm.
Same thing happened to me in multiple projects on multiple machines. Weird how that seems so common and still made it into v5.
I find less issues when I `rm -rf node_modules`, `rm package-lock.json` and `npm i` again... usually when I manually edit my package.json packages.
That was the last straw for me and NPM is now banned in favor of yarn.