Add `.nvmrc` config file
See original GitHub issueHi 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:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We mention it in README, is there a better place?
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 you0.9.x
in this case.@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.