Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

remove old version of node and install new

First remove previous version
$ sudo apt remove nodejs
Installing Node.js with Apt Using a NodeSource PPA
cd ~
curl -sL https://deb.nodesource.com/setup_16.x -o nodesource_setup.sh
Inspect the contents of the downloaded script with nano (or your preferred text editor):
nano nodesource_setup.sh
When you are satisfied that the script is safe to run, exit your editor, then run the script with sudo
sudo bash nodesource_setup.sh
The PPA will be added to your configuration and your local package cache will be updated automatically. You can now install the Node.js package in the same way you did in the previous section:

sudo apt install nodejs
Verify that you’ve installed the new version by running node with the -v version flag:
node -v
Comment

PREVIOUS NEXT
Code Example
Shell :: xcode There is not enough disk space available to install the product. 
Shell :: apt install force 
Shell :: ionic capacitor v3 add android 
Shell :: git always commit with gpg 
Shell :: vs code terminal open file in separate window 
Shell :: ubuntu terminal network monitor 
Shell :: install node using nvm windows 
Shell :: heroku postgres reset database 
Shell :: open finder from terminal 
Shell :: install typescript in node project 
Shell :: sed add line after match 
Shell :: linux unzip with password 
Shell :: show ip address linux 
Shell :: configuration file is group-readable. This is insecure linux 
Shell :: create user kali linux 
Shell :: get request linux terminal 
Shell :: bash for loop string 
Shell :: flutter cocoapods not installed 
Shell :: how to install sublime text arch linux 
Shell :: To stop all running docker containers 
Shell :: undo git pull origin master into feature branch 
Shell :: install wireshark ubuntu 
Shell :: gnome files command 
Shell :: git add git commit 
Shell :: 10 digit validation in jquery 
Shell :: enable rdp windows 10 powershell 
Shell :: multi line comment in bash shell 
Shell :: git rewrite commit message 
Shell :: createa. branch off of development git 
Shell :: git update comment 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =