I updated node to v17.3.0. When I type in cmd
----> node -v
. I have version v17.3.0. I am trying to install react-create-app
and can't. I have the message Your environment has been set up for using Node.js 12.18.2 (x64) and npm.
How to solve this problem?
CodePudding user response:
I suggest installing and using nvm
- https://github.com/nvm-sh/nvm
Once you install it, you can do nvm install 17.3.0
and then nvm use 17.3.0
This script makes it really easy to switch between node & npm versions.