无法使用电子生成器构建电子应用

时间:2019-05-02 08:01:35

标签: electron electron-builder

我正在尝试使用命令electronic-builder构建我的应用程序。我有一个依赖项node-native-printer,它在安装时会询问我们要选择的依赖项以使其起作用。 事实是,它可以正常工作,并且我可以在运行npm install时从终端中选择依赖项。但是,当我运行electron-builder命令时,它只会失败并显示以下错误。

Error: npm.cmd exited with code 1
Output:

> electron-edge-js@10.11.1 install D:\app\node_modules\electron-edge-js
> node tools/install.js

Success: platform check for edge.js: node.js x64 v10.15.3

> node-native-printer@1.0.0-beta.5 install D:\app\node_modules\node-native-printer
> node install/install.js

? Which package do you want to use? (Use arrow keys)
> edge-cs 
  electron-edge-js 
  Not listed 
Error output:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-native-printer@1.0.0-beta.5 install: `node install/install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the node-native-printer@1.0.0-beta.5 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Vibhor\AppData\Roaming\npm-cache\_logs\2019-05-02T07_55_27_454Z-debug.log

    at ChildProcess.childProcess.once.code (D:\app\node_modules\builder-util\src\util.ts:244:14)
    at Object.onceWrapper (events.js:277:13)
    at ChildProcess.emit (events.js:189:13)
    at maybeClose (internal/child_process.js:970:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)

现在如何解决该问题,因为它会自动选择电子边缘js作为依赖项?

0 个答案:

没有答案