前端开发者说

记录开发的故事

  • 首页
  • 归档
  • 标签
  • 搜索
close

centos如何升级nodejs

发表于 2018-07-08   |  

更新日志

curl –silent –location https://rpm.nodesource.com/setup_8.x | sudo bash -
yum -y install nodejs
记得删除老版本的npm node
rm /usr/local/bin/npm

yum remove nodesource-release nodejs
yum clean all
rm -rf /var/cache/yum/

rm /etc/yum.repos.d/nodesource-el.repo
yum -y remove nodejs

参考

node如何设置process.env
清空 git 的 commit 记录
  • 文章目录
  • 站点概览
huixisheng

huixisheng

前端路漫漫兮,吾将上下而求索

50 日志
60 标签
RSS
GitHub Twitter 微博
  1. 1. 更新日志
  2. 2. 参考
© 2019 huixisheng
由 Hexo 强力驱动
主题 - NexT.Pisces