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.

[Feature suggestion] Support `package.json` `engines.node` field

See original GitHub issue

Suggestion for Node.js: default to package.json engines.node field (if present) instead of last 2 versions.

Use case: I am writing Node.js libraries using Node 11 syntax, but compiling with Babel in order to support Node >=6. I am declaring Node.js support with engines.node. Babel preset-env uses browserslist. Currently I need to duplicate the information from engines.node to a browserslist configuration file or preset-env configuration option.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:6
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
aicommented, Dec 5, 2018

And project electron version

3reactions
mutechcommented, Dec 5, 2018

Another idea:

  • project node version
Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - [Feature suggestion] Support `package.json` `engines ...
[Feature suggestion] Support `package.json` `engines.node` field. ... Help and Information. Frequently Asked Questions · Bugs and Feature Requests · Fees ...
Read more >
package.json - npm Docs
json are the name and version fields as they will be required. The name and version together form an identifier that is assumed...
Read more >
Node Engines: Helping Developers Everywhere Avoid ...
Step 2: Specify Your Node Engine in the Package .​​ Now that you know the version of Node, you can specify it in...
Read more >
How can I specify the required Node.js version in package.json?
You can set the engines field in your package.json and set requirements for either node or npm versions or both: "engines" : {...
Read more >
The Node.js runtime - App Engine - Google Cloud
json file by using the engines field. In this case, the runtime will ensure that the package manager used for the deployment has...
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