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 5 not supported

See original GitHub issue

Expected Behavior

Would be awesome if lerna worked with npm 5.

Current Behavior

It kind of works today. The problem is that each time I run bootstrap something is modifying the package-lock.json files in inconsistent ways. Sometimes it removes the root level name and version from the package lock file. Sometimes it breaks and leaves the package.json in a state where it only has a list of the dependencies and a package.json.lerna_backup file exists.

Possible Solution

Something is clearly going on where potentially npm is watching modifications to the package.json and messing stuff up as lerna is modifying them. Not totally sure.

Steps to Reproduce (for bugs)

Honestly, each time I ran bootstrap I would get a different result.

lerna.json

{
  "lerna": "2.0.0",
  "packages": [
    "packages/*"
  ],
  "version": "independent"
}

Context

Executable Version
lerna --version 2.0.0
npm --version 5.3.0
yarn --version 0.25.7
node --version 8.1.4
OS Version
macOS Sierra 10.1.2

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:15
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

5reactions
bryzaguycommented, Aug 9, 2017

Thanks for the suggestions on making the package-lock files less of an issue. However, I want to have and use the package-lock files.

3reactions
nealokecommented, Nov 1, 2017

When I install a new package with npm 5 it removes my symblinks created by lerna bootstrap, super annoying

Read more comments on GitHub >

github_iconTop Results From Across the Web

NPM 5 is not supported yet in React Native - node.js
While creating an app using React native, in cmd I'm facing the following error message: ERROR: npm 5 is not supported yet. npm...
Read more >
Prevent npm install for not supported Node.js versions
Use a local npm configuration to prevent users from installing your module/project with an unsupported Node.js version.
Read more >
Common errors | npm Docs
Possible temporary npm registry glitch, or corrupted local server cache. Run npm cache clean and/or try again later. · This can be caused...
Read more >
npm does not support Node.js v SOLVED - YouTube
How to solve npm does not support Node.js v16.10.0 You should probably upgrade to a newer version of node as we npm ERR!...
Read more >
How to fix 'npm does not support Node.js v14' error on ...
Uninstall node.js (Windows Add/Remove programs) · Manually delete the npm folder from your user profile (%APPDATA%/roaming/npm) · Install node.js ...
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