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.

Add `.nvmrc` config file

See original GitHub issue

Hi guys! After upgrading to react-scripts: 1.0.2, I’m getting this warning when running npm i:

npm WARN engine react-scripts@1.0.2: wanted: {"node":">=6"} (current: {"node":"4.4.5","npm":"2.15.5"})

Why don’t we add a .nvmrc file with the node version necessary to use react-scripts? So then we only need to run nvm i && npm i.

My 2 cents. Thanks!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

gaearoncommented, May 20, 2017

We mention it in README, is there a better place?

screen shot 2017-05-20 at 22 21 07

The latest version of create-react-app will also warn you for newly created projects if you’re on a lower version, and will give you 0.9.x in this case.

BrodaNoelcommented, May 20, 2017

@gaearon @Timer just to be clear, which should be the min-node version to use? I guess it would be great to add it in the documentation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to write a .nvmrc file which automatically change node ...
It will generate something like this inside your .nvmrc file: ... You need to add something else to your shell configuration depending on ......
Read more >
Using .nvmrc to Specify Node Version - TecAdmin
Create a .nvmrc file containing a node version number in your project. You can use the nvm —-help to check other options.
Read more >
How to Lock down Your Project's Node Version Using .Nvmrc ...
In your project, create a .nvmrc file to add the node version. ... Finally run npm install to confirm that your setup is...
Read more >
Specify Node Versions with .nvmrc - David Walsh Blog
One tip I like to give new developers is adding a .nvmrc file to their repositories. The file contents is just a simple...
Read more >
nvm-sh/nvm: Node Version Manager - POSIX-compliant bash ...
Calling nvm use automatically in a directory with a .nvmrc file ... nvm allows you to quickly install and use different versions of...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found