skip to Main Content

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


  1. Install from source:

    curl -fsSL https://deb.nodesource.com/setup_19.x | sudo -E bash - && sudo apt-get install -y nodejs
    

    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.

    Login or Signup to reply.
  2. 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.

    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash

    source ~/.profile 

    nvm install 14.15.5

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search