0

I had problem with create-react-app and turned out I gotta update my version of nodeJS. The thing is that I can't do so. when I type node --version I get v11.10.0, however when I type sudo n stable, I get:installed : v10.16.3 (with npm 6.9.0). However when checking version of node I all time get this 11.10.0. How can I get this last stable version 10.16.3?

EDIT: SOLVED turned out nvm was installed on laptop and it controled node version

6
  • which os you are using? Commented Sep 30, 2019 at 8:16
  • @krishnasapkal I use Ubuntu 18.04.3 LTS Commented Sep 30, 2019 at 8:18
  • I has a similar issue when I updated my node version, uninstalling all of them and then reinstalling the wanted one solved the problem for me. Commented Sep 30, 2019 at 8:21
  • @Lumpenstein, and how to uninstall it? As I tried sudo apt-get purge --auto-remove nodejs and eventho in theory it was removed, then again after typing node --version I get this v11.10.0 Commented Sep 30, 2019 at 8:28
  • why don't accept any one of the below answer so the people will know the solution? Commented Sep 30, 2019 at 8:48

2 Answers 2

2

I would suggest you use nvm to manage your node versions. It allows you to download multiple versions and you can assign versions on a per project basis. It also allows you to choose which version you want as default

Sign up to request clarification or add additional context in comments.

Comments

1

Install nvm it will allow you to install and use any version you want. Installation steps on ubuntu 18.04

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.