安装服务npm install执行失败

执行npm install命令失败了,您可以尝试

  1. 删除根目录/web/node_modules
  2. 推荐使用pnpmyarnNPM包管理器,安装pnpm命令:npm install -g pnpm
  3. 手动执行pnpm installpnpm build命令,成功后,再打开安装页面右下角的终端,点击重新发布按钮
  4. 若执行失败,请升级NodeJs (opens new window)NPM (opens new window)
  5. 若还是执行失败,请根据报错信息排除错误后,再继续进行安装

# 常见错误解决参考

# 如何设置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/

# 无法加载文件 ***,因为在此系统上禁止运行脚本。

  1. 管理员身份运行Windows PowerShell
  2. 执行命令set-ExecutionPolicy RemoteSigned
  3. 选择[A]全是