前言
Ubuntu18.04
默认安装了 Nodejs v8.x
版本
升级
$ curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh
$ sudo bash nodesource_setup.sh
$ sudo apt install nodejs
# 需要从源代码编译代码的 NPM 包
$ sudo apt install build-essential
检查
$ node -v
$ npm -v
© 著作权归作者所有
举报
发表评论
0/200