当前位置:   article > 正文

解决npx @electron-forge/cli import时提示缺失依赖_it looks like you are missing some dependencies yo

it looks like you are missing some dependencies you need to get electron run

问题及步骤描述:

根据Electron官网步骤进行打包时:

npx @electron-forge/cli import
  • 1

命令提示:

√ Checking your system
It looks like you are missing some dependencies you need to get Electron running.
Make sure you have git installed and Node.js version >= 10.0.0
  • 1
  • 2
  • 3

从git官网下载安装git后,打开git bash再次执行命令:

npx @electron-forge/cli import
  • 1

命令提示:

- Checking your system
√ Checking your system
- Initializing Git Repository
√ Initializing Git Repository
- Writing modified package.json file
√ Writing modified package.json file
- Installing dependencies
× Installing dependencies

An unhandled error has occurred inside Forge:
Failed to install modules: ["electron-squirrel-startup"]

With output: Command failed with a non-zero return code (4294963238):
npm install electron-squirrel-startup --save
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14

根据提示执行命令࿱

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/965070
推荐阅读
相关标签
  

闽ICP备14008679号