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.

Question: is there an expected Node/npm version for development?

See original GitHub issue

I ran npm i and my package-lock.json was modified significantly from what’s in the repo. This generally happens if you run npm i using a different version of npm from what was used when package-lock.json was last updated. I’m using Node v12.7.0 and npm v6.13.1.

I looked into package.json file hoping to find the engines field which would tell me what version of Node and npm is expected but didn’t find it.

Suggestion: specify expected version of Node and npm in engines field of package.json.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
marcosrdzcommented, Dec 29, 2019

@bolatovumar it will be different since the devDependencies aren’t version locked at the moment. This will result in you probably having a newer eslint, or a newer jest. Which will result in a different package-lock.json.

1reaction
issue-label-bot[bot]commented, Dec 29, 2019

Issue-Label Bot is automatically applying the label question to this issue, with a confidence of 0.89. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm does not support Node.js v10.19.0 · Issue #3644 - GitHub
Details. I cannot access npm right now. My node version is 10.19.0, and my npm version is 6.14. Here is the error message...
Read more >
Error npm is known not to run on Node.js v10.24.1 and how to ...
Open you terminal and verify you have the latest version using node -v . Verify your npm version too using npm -v ....
Read more >
expected-node-version - npm
Retrieves the node version from the package.json or .nvmrc file. Latest version: 1.0.2, last published: 7 years ago.
Read more >
5 questions Node.js developers want answered - Pluralsight
Node.js 11 ships with version 6.x of npm. This new version of npm has some really cool new additions, such as the npm...
Read more >
How To Install Node.js and Create a Local Development ...
Node has two major versions: Current and LTS for long-term support. For development purposes, it's recommended to install the LTS version. You ...
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