Ubuntu under ultra-simple installation of the specified version of the Nodejs

Source: Internet
Author: User
Tags install node nodesource

The first step specifies the version source
Executive CURL-SL https://deb.nodesource.com/setup_6.x | SUDO-E Bash-
setup_5.x need to install the version number, replace the number on the line.

[Email protected]:~$ curl-sl https:deb.nodesource.com/setup_6.x | SUDO-E Bash-This will show that the installation is successful!# # Installing the Nodesource node. js v6.x repo ...# # Populating Apt-get cache...+ apt-get updatehit:1 http:Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial Inreleaseget:2 http:Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates inrelease [95.7 KB] Get:3 http:Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-backports inrelease [92.2 KB] Get:4 http:Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security inrelease [94.5 kb]hit:5 http:Repo.mysql.com/apt/ubuntu xenial Inrelease fetched282 KB in0s (615 kb/s) Reading Package lists ... Done# # confirming "xenial" is supported...+ curl-slf-o/dev/Null' Https://deb.nodesource.com/node_6.x/dists/xenial/Release '# # Adding The Nodesource signing key to your keyring...+ curl-s https:Deb.nodesource.com/gpgkey/nodesource.gpg.key | Apt-key Add-ok# # Creating APT sources list file for the Nodesource node. js v6.x repo...+Echo' Deb https://deb.nodesource.com/node_6.x xenial main ' >/etc/apt/sources.List.d/nodesource.list+Echo' Deb-src https://deb.nodesource.com/node_6.x xenial main ' >>/etc/apt/sources.List.d/nodesource.List# # Running ' apt-get update ' for you...+ apt-get updatehit:1 http:Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial Inreleaseget:2 http:Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates inrelease [95.7 KB] Get:3 http:Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-backports inrelease [92.2 KB] Get:4 http:Mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security inrelease [94.5 KB] Hit:5 http://repo.mysql.com/apt/ubuntu xenial InRelease Get:6 https://deb.nodesource.com/node_6.x xenial InRelease [3,914 B]Get: 7 https://deb.nodesource.com/node_6.x xenial/main Sources [ 765 B]get:8 https://deb.nodesource.com/node_6.x Xenial/main AMD64 Packages [960 b]get:9 https://deb.nodesource.com/node_ 6.x Xenial/main i386 Packages [959 b]fetched 289 KB in 5s (51.9 kb/s) Reading Package lists ... Done## Run ' apt-get install Nodejs ' (as root) to install node. js v6.x and NPM              

Step Two
Install Nodejs, execute apt-get install Nodejs!

[Email protected]xenial:~$ sudo apt-get install nodejsreading package lists ... Donebuilding Dependency Tree Reading state information ... Donethe following NEW packages'll beInstalled:nodejs0 upgraded,1 newly installed,0 to removeand90Not upgraded. Need to get10.1 MB of archives. After this operation,50.7 MB of additional disk space would be used.Get:1https://deb.nodesource.com/node_6.x xenial/main AMD64 Nodejs AMD646.9.1-1nodesource1~xenial1 [10.1 mb]fetched10.1 MBInch1min25s (119 kb/s) Selecting previously unselected package Nodejs. (Reading database ...60366 files and directories currently installed.) Preparing to unpack .../nodejs_6. 9.1-1nodesource1~xenial1_amd64.deb ... Unpacking Nodejs (6.9.  1-1nodesource1~xenial1) ... Processing triggers for man-db (2.7.  5-1) ... Setting up Nodejs (6.9.  1-1nodesource1~xenial1) ... [Email protected] xenial:~$ node-vv6. 9.1[email protected]xenial:~$ npm-v3.10.  8                  


Junting
Links: https://www.jianshu.com/p/32057c07a076
Source: Pinterest
Copyright belongs to the author. Commercial reprint please contact the author for authorization, non-commercial reprint please specify the source.

Ubuntu under ultra-simple installation of the specified version of the Nodejs

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.