系统环境:
OS:银河麒麟V10
下载Node.js https://nodejs.org/en
安装Node.js
将下载安装包放到自己需要安装目录
链接nodejs目录
shuchengyang@shuchengyang-x10dri:/opt/node-v18.16.0-linux-x64$ sudo ln -s /opt/node-v18.16.0-linux-x64/bin/node /usr/local/bin/ shuchengyang@shuchengyang-x10dri:/opt/node-v18.16.0-linux-x64$ sudo ln -s /opt/node-v18.16.0-linux-x64/bin/npm /usr/local/bin/ shuchengyang@shuchengyang-x10dri:/opt/node-v18.16.0-linux-x64$ sudo ln -s /opt/node-v18.16.0-linux-x64/bin/npx /usr/local/bin/
验证安装
6.修改镜像源
shuchengyang@shuchengyang-x10dri:/opt/node-v18.16.0-linux-x64$ npm config edit npm notice npm notice New minor version of npm available! 9.5.1 -> 9.6.7 npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.6.7 npm notice Run npm install -g npm@9.6.7 to update! npm notice
使用vim命令,在文件尾追加:
electron_mirror= electron-builder-binaries_mirror=https://npm.taobao.org/mirrors/electron-builder-binaries/
还没有评论,来说两句吧...