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

debian和ubuntu用apt-get安装nodejs

时间:2016-06-22 23:34:30      阅读:226      评论:0      收藏:0      [点我收藏+]

标签:

debian和ubuntu的apt-get真是大坑,默认装的nodejs竟然不是真正的nodejs,npm也有问题。

用这样的命令可以解决:

# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs

# Using Debian, as root
curl -sL https://deb.nodesource.com/setup_6.x | bash -
apt-get install -y nodejs

 

debian和ubuntu用apt-get安装nodejs

标签:

原文地址:http://www.cnblogs.com/netaddi/p/5608856.html

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