安装nodejs 下载地址 Node.js 中文网 (nodejs.com.cn) nodejs安装步骤 Installation · nodejs/help Wiki (github.com) linux安装nodejs参考命令 [root@ctl01 tmp]# tar -xf node-v18.19.0-linux-x64.tar.xz [root@ctl01 tmp]# mv node-v18.19.0-linux-x64 nodejs [root@ctl01 tmp]# mv nodejs /usr/local/ [root@ctl01 tmp]# echo "export PATH=$PATH:/usr/local/nodejs/bin" >> /etc/profile [root@ctl01 tmp]# source /etc/profile 证书过期处理 # vue创建项目报错 $ error An unexpected error occurred: "https://registry.npm.taobao.org/@vue%2fcli-plugin-babel: certificate has expired". # 首先更换镜像地址 $ npm config set registry https://registry.npmmirror.com # 调整用户目录下配置 $ cat .vuerc { "useTaobaoRegistry": false,#如果为true调整为false,如果为false调整为true "packageManager": "yarn" }