centos安装npm、node

命令:

1、yum install nodejs

2、npm -v   能查看版本即安装成功

3、npm install -g cnpm --registry=https://registry.npm.taobao.org (淘宝源)

4、安装出错,同步ntp:ntpdate 172.16.2.26,重新执行安装淘宝源

_Kc
发布了69 篇原创文章 · 获赞 9 · 访问量 7万+

猜你喜欢

转载自blog.csdn.net/qq_26775359/article/details/85062181
今日推荐