First Blog

··
睡觉不盖被子

NodeJS 安装
#

  1. 安装 nodejs
# 连接NodeSource仓库
$ curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
apt list nodejs
  1. npm install时连接超时
# 设置为淘宝镜像
npm config set registry http://registry.npmmirror.com
# 或者是调整代理
rm -rf  ~/.npmrc # 删除配置文件
npm cache clean --force # 清理缓存
npm config rm proxy # 清理代理
npm config rm https-proxy
reboot # 关机重启