How to install/uninstall/update node / angular / npm

INSTALL

How to install Node.js to latest version
Windows
Install the latest, https://nodejs.org/en/download

CentOS
Change setup_10.x to whatever version you need.

- curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash -
sudo yum install nodejs

UPDATE

How to update Node.js to latest version

1. Uninstall Node.js. Click the Start menu, type "Change or Remove a Program", click on the item shown, find Node.js in the list and uninstall it.
2. Delete directories, both C:\Program Files (x86)\nodejs\ and C:\Program Files\nodejs\ if they exist.
3. Install the latest, https://nodejs.org/en/download

The uninstall/delete/install seems unnecessary, but it often is and this will save your time. These instructions come from Microsoft.

UNINSTALL

How to Uninstall Node and NPM


You uninstall Node.js and NPM the same as you would most all Windows software:
  1. Open the Windows Control Panel
  2. Choose the Programs and Features option
  3. Click the “Uninstall a program”
  4. Select Node.js, and click the Uninstall link.

Angular

npm uninstall -g @angular/cli
npm cache clean --force


Reference

Comments

Popular posts from this blog

M5Stack ESP32

Express connect to mysql

How to debug msbuild