(节点:15864)UnhandledPromiseRejectionWarning:TypeError:无法读取未定义的属性“ match”

时间:2019-09-06 11:57:47

标签: electron electron-builder electron-window

当我运行以下命令将exe转换为appx时,我们遇到以下错误:

命令

electron-windows-store --input-directory <path to folder containing electron
executable> --output-directory <path> --package-version “0.0.1” --package-name “PackageName” --package-executable <path to folder containing electron
executable> --manifest <path to custom manifest> --assets <path to assets folder>

错误

(node:15864) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'match' of undefined
at inquirer.prompt.then.then (C:\Users\kkannan\AppData\Roaming\npm\node_modules\electron-windows-store\lib\params.js:86:29)
at process._tickCallback (internal/process/next_tick.js:68:7)

 (node:15864) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)

 (node:15864) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

0 个答案:

没有答案