question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npm 7 breaks tests

See original GitHub issue

As 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:closed
  • Created 3 years ago
  • Comments:20 (16 by maintainers)

github_iconTop GitHub Comments

4reactions
ljharbcommented, May 12, 2021

Successive npm 7 releases appear to have resolved the remaining issues, and I’m able to merge PRs again.

0reactions
ljharbcommented, May 5, 2021

No, there’s no known issues right now.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found