安装服务
npm install
执行失败
执行npm install
命令失败了,您可以尝试
- 删除
根目录/web/node_modules
- 推荐使用
pnpm
或yarn
NPM包管理器,安装pnpm
命令:npm install -g pnpm
- 手动执行
pnpm install
和pnpm build
命令,成功后,再打开安装页面右下角的终端,点击重新发布
按钮 - 若执行失败,请升级NodeJs (opens new window)和NPM (opens new window)
- 若还是执行失败,请根据报错信息排除错误后,再继续进行安装
# 常见错误解决参考
# 如何设置NPM源
# 淘宝源
npm config set registry https://registry.npm.taobao.org/
# rednpm源
npm config set registry http://registry.mirror.cqupt.edu.cn/
# npm源
npm config set registry https://registry.npmjs.org/
# 无法加载文件 ***,因为在此系统上禁止运行脚本。
- 管理员身份运行
Windows PowerShell
- 执行命令
set-ExecutionPolicy RemoteSigned
- 选择[A]全是