Jacki
Jacki

Reputation: 672

NodeJS can't install it properly

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

Upvotes: 0

Views: 313

Answers (2)

Aviso
Aviso

Reputation: 695

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

Upvotes: 1

Abishek Aditya
Abishek Aditya

Reputation: 812

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

Upvotes: 2

Related Questions