码迷,mamicode.com
首页 > Web开发 > 详细

ubuntu 16.04 安装node.js 8.x

时间:2018-05-24 19:57:58      阅读:286      评论:0      收藏:0      [点我收藏+]

标签:https   ubuntu   community   UI   unity   node.js 8   ESS   com   using   

引自 https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-16-04#how-to-install-using-a-ppa

按很多方法装都是装的v4.2.6,用一下方法终于成功安装8.11.2。

$ curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh
$ sudo bash nodesource_setup.sh
$ sudo apt-get install nodejs
$ nodejs -v
v8.11.2
$ npm -v
5.6.0

为了使一些npm包能够工作(例如那些需要从源代码编译代码的包),您需要安装build-essential包:

$ sudo apt-get install build-essential

您现在有必要的工具来处理需要从源代码编译代码的npm包。

ubuntu 16.04 安装node.js 8.x

标签:https   ubuntu   community   UI   unity   node.js 8   ESS   com   using   

原文地址:https://www.cnblogs.com/sclczk/p/9084764.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!