I’m very new to coding, and am using Linux Pop! OS. I’m working on a project with React and NodeJS and npm, but it says I have to have at least the 14th version of Node to create a React App, and mine is v12.22.9
I’ve tried sudo apt update
and sudo apt upgrade
, but the node version doesnt change. I’ve tried uninstalling and reinstalling. I see on the NodeJS download website that the most current version is 19 and have downloaded that to my downloads folder, but I don’t know how to tell vscode to use that version.
2
Answers
Install from source:
or use fnm (fast and simple Node.js version manager) to have best solution – GH repo – which allows you to install, uninstall, switch Node versions as you like.
Please use the below commands the upgrade your nodeJS version. I am using that command multiple times and it’s always working for me. this command is to change your nodeJS current version to version 14.