先检查是否安装npm:which npm
未安装时 安装npm:
curl --silent --location https://rpm.nodesource.com/setup_10.x | bash -
yum install -y nodejs
npm install -g cnpm --registry=https://registry.npm.taobao.org
# npm config get registry # 查看当前镜像源
# npm config set registry https://registry.npm.taobao.org # 设置淘宝镜像源
npm install
npm run build
npm -v
linux nodejs安装使用
最新推荐文章于 2024-07-18 23:15:01 发布