npm 7 breaks tests
See original GitHub issueAs of npm 7’s promotion yesterday, there’s at least two problems breaking tests on master and every PR:
- peer dep issues. eslint 4 is incompatible with
@typescript-eslint/parser
. this is solved with--legacy-peer-deps
(commit). - when node_modules is present in the root, and was installed with npm 7, both npm 6 and 7 fail on a bunch of the resolver tests, and on a few of the root tests (presumably related). When node_modules is absent, or
chmod a-x node_modules
, or installed with npm 6, things are fine. (lockfile diff)
It’s being looked into. After a few days of this, I’ll probably try to downgrade npm on affected builds, but it might reflect an issue that npm 7 users will encounter, so I’d prefer to find a proper fix.
Issue Analytics
- State:
- Created 3 years ago
- Comments:20 (16 by maintainers)
Top Results From Across the Web
Updating from 7.0.10 to 7.1.0 breaks npm install when running ...
7.10.0 is a breaking change with the introduction of NPM 7 as a dependency My project's unit tests run npm install using Node's ......
Read more >Presenting v7.0.0 of the npm CLI - The GitHub Blog
We've been smoke-testing npm 7.0.0 using the Node.js smoke testing suite CITGM and are happy to report that despite massive internal changes ...
Read more >What's new in npm v7 - LogRocket Blog
Breaking changes in npm 7.0.0 · The ability to automatically install peer dependencies has the potential to break certain workflows · npm now ......
Read more >Common errors | npm Docs
Broken npm installation; Random errors; No compatible version found ... Error: ENOENT, stat 'C:\Users\<user>\AppData\Roaming\npm' on Windows 7; No space ...
Read more >npm check and update package if needed - Stack Overflow
xml2js@0.2.7 node_modules/xml2js current=0.2.6 ... As an example, here is a package.json that, when I run npm install && npm test will install the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Successive npm 7 releases appear to have resolved the remaining issues, and I’m able to merge PRs again.
No, there’s no known issues right now.