Home > Blockchain >  I want to use Node 14 to run my project but it always runs on Node 12. How to fix this?
I want to use Node 14 to run my project but it always runs on Node 12. How to fix this?

Time:10-24

It shows node version 12 but with sudo it shows 14, I want to use version 14 in future, How can i configure it to version 14

CodePudding user response:

Install NVM and desired versions of Node, after installing them you can choose any Node versions from the installed list and you can change the Node version in which your project wants to run.

In your case after installing nvm and Node 14.xx, try nvm use 14.xx or else your desired version. This will change to Node 14.xx version.

You can install NVM by going through this link https://github.com/nvm-sh/nvm and after that you can install node versions through NVM itself.

CodePudding user response:

I think this question will help you understand better.

How to change to an older version of Node.js

Just use your version instead of the older version.

  • Related