
nodejs
只爱写代码
这个作者很懒,什么都没留下…
展开
-
ubuntu16.04下安装nodejs
1.用apt安装nodejssudo apt-get updatesudo apt-get install nodejssudo apt install nodejs-legacysudo apt install npm2.配置淘宝镜像sudo npm config set registry https://registry.npm.taobao.org// 查看是否生效sudo...转载 2019-01-19 00:21:35 · 457 阅读 · 0 评论 -
ubuntu16.04源码安装node
1.官网下载源码包,我这里下载的是10.15.0的版本 https://nodejs.org/en/解压文件并拷贝到要安装的目录sudo tar xvf node-v10.15.0-linux-x64.tar.xzmv node-v10.15.0-linux-x64 /usr/local/node/2.因为已经包含了启动文件无需编译,只要配置一下环境变量就好了vim /etc/prof...原创 2019-01-19 14:18:22 · 637 阅读 · 0 评论