|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
本帖最后由 liuhongrun2022 于 2023-9-24 18:47 编辑
rt,在执行这一步的时候出了点问题
- C:\Users\L\Desktop\my-electron-app>npx electron-forge import
- ✔ Checking your system
- ✔ Locating importable project
- ❯ Processing configuration and dependencies
- ✖ Installing dependencies
- › Failed to install modules: ["electron-squirrel-startup"]
- With output: Command failed with …
- ◼ Copying base template Forge configuration
- ◼ Fixing .gitignore
- ◼ Finalizing import
- An unhandled rejection has occurred inside Forge:
- Error: Failed to install modules: ["electron-squirrel-startup"]
- With output: Command failed with a non-zero return code (1):
- npm install electron-squirrel-startup --save
- npm WARN ERESOLVE overriding peer dependency
- npm WARN While resolving: @pkgjs/eslint-plugin-node-core@1.0.0
- npm WARN Found: eslint@8.50.0
- npm WARN node_modules/eslint
- npm WARN dev eslint@"^8.29.0" from @electron/osx-sign@1.0.5
- npm WARN node_modules/_@electron_osx-sign@1.0.5@@electron/osx-sign
- npm WARN @electron/osx-sign@1.0.5
- npm WARN node_modules/_electron-packager@17.1.2@electron-packager/node_modules/@electron/osx-sign
- npm WARN @electron/osx-sign@1.0.5
- npm WARN node_modules/@electron/osx-sign
- npm WARN 25 more (@pkgjs/parseargs, @typescript-eslint/eslint-plugin, ...)
- npm WARN
- npm WARN Could not resolve dependency:
- npm WARN peer eslint@"^7.0.0" from eslint-plugin-node-core@1.0.0
- npm WARN node_modules/eslint-plugin-node-core
- npm WARN dev eslint-plugin-node-core@"iansu/eslint-plugin-node-core" from @pkgjs/parseargs@0.11.0
- npm WARN node_modules/_@pkgjs_parseargs@0.11.0@@pkgjs/parseargs
- npm WARN 1 more (eslint-plugin-node-core)
- npm WARN
- npm WARN Conflicting peer dependency: eslint@7.32.0
- npm WARN node_modules/eslint
- npm WARN peer eslint@"^7.0.0" from eslint-plugin-node-core@1.0.0
- npm WARN node_modules/eslint-plugin-node-core
- npm WARN dev eslint-plugin-node-core@"iansu/eslint-plugin-node-core" from @pkgjs/parseargs@0.11.0
- npm WARN node_modules/_@pkgjs_parseargs@0.11.0@@pkgjs/parseargs
- npm WARN 1 more (eslint-plugin-node-core)
- npm WARN ERESOLVE overriding peer dependency
- npm ERR! Cannot read properties of null (reading 'isDescendantOf')
- npm ERR! A complete log of this run can be found in:
- npm ERR! C:\Program Files\nodejs\node_cache\_logs\2023-09-24T10_42_36_986Z-debug-0.log
- npm WARN ERESOLVE overriding peer dependency
- npm WARN While resolving: @pkgjs/eslint-plugin-node-core@1.0.0
- npm WARN Found: eslint@8.50.0
- npm WARN node_modules/eslint
- npm WARN dev eslint@"^8.29.0" from @electron/osx-sign@1.0.5
- npm WARN node_modules/_@electron_osx-sign@1.0.5@@electron/osx-sign
- npm WARN @electron/osx-sign@1.0.5
- npm WARN node_modules/_electron-packager@17.1.2@electron-packager/node_modules/@electron/osx-sign
- npm WARN @electron/osx-sign@1.0.5
- npm WARN node_modules/@electron/osx-sign
- npm WARN 25 more (@pkgjs/parseargs, @typescript-eslint/eslint-plugin, ...)
- npm WARN
- npm WARN Could not resolve dependency:
- npm WARN peer eslint@"^7.0.0" from eslint-plugin-node-core@1.0.0
- npm WARN node_modules/eslint-plugin-node-core
- npm WARN dev eslint-plugin-node-core@"iansu/eslint-plugin-node-core" from @pkgjs/parseargs@0.11.0
- npm WARN node_modules/_@pkgjs_parseargs@0.11.0@@pkgjs/parseargs
- npm WARN 1 more (eslint-plugin-node-core)
- npm WARN
- npm WARN Conflicting peer dependency: eslint@7.32.0
- npm WARN node_modules/eslint
- npm WARN peer eslint@"^7.0.0" from eslint-plugin-node-core@1.0.0
- npm WARN node_modules/eslint-plugin-node-core
- npm WARN dev eslint-plugin-node-core@"iansu/eslint-plugin-node-core" from @pkgjs/parseargs@0.11.0
- npm WARN node_modules/_@pkgjs_parseargs@0.11.0@@pkgjs/parseargs
- npm WARN 1 more (eslint-plugin-node-core)
- npm WARN ERESOLVE overriding peer dependency
- npm ERR! Cannot read properties of null (reading 'isDescendantOf')
- npm ERR! A complete log of this run can be found in:
- npm ERR! C:\Program Files\nodejs\node_cache\_logs\2023-09-24T10_42_36_986Z-debug-0.log
- at exports.default (C:\Users\L\Desktop\my-electron-app\node_modules\_@electron-forge_core@6.4.2@@electron-forge\core\dist\util\install-dependencies.js:52:19)
- at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
- at async Task.task (C:\Users\L\Desktop\my-electron-app\node_modules\_@electron-forge_core@6.4.2@@electron-forge\core\dist\api\import.js:168:29)
- at async Task.run (C:\Users\L\Desktop\my-electron-app\node_modules\_listr2@5.0.8@listr2\dist\index.cjs:978:11)
- at async C:\Users\L\Desktop\my-electron-app\node_modules\_p-map@4.0.0@p-map\index.js:57:22
复制代码 |
|