Node.js 错误NU5019:未找到文件:';许可证';-电子安装程序窗口
我正在尝试使用创建vue应用程序的打包版本。使用vue cli插件electron builder创建windows构建后,我将使用macOS cli将从该过程生成的未打包windows文件夹传递给electron installer windows。无论如何,我无法完成这个过程,因为我总是在控制台Node.js 错误NU5019:未找到文件:';许可证';-电子安装程序窗口,node.js,electron,nuget,Node.js,Electron,Nuget,我正在尝试使用创建vue应用程序的打包版本。使用vue cli插件electron builder创建windows构建后,我将使用macOS cli将从该过程生成的未打包windows文件夹传递给electron installer windows。无论如何,我无法完成这个过程,因为我总是在控制台error NU5019:File not found:“LICENSE”中遇到这个错误。这是控制台日志 Creating package (this may take a while) ExitCo
error NU5019:File not found:“LICENSE”
中遇到这个错误。这是控制台日志
Creating package (this may take a while)
ExitCodeError: Command failed with a non-zero return code (1):
mono /usr/local/lib/node_modules/electron-installer-windows/vendor/nuget/nuget.exe pack /var/folders/4z/pbf5z13d7qxb207y7w3br8wm0000gn/T/electron-installer--72450-as30qUAoE2Iy/file_shield_1.0.0_undefined/nuget/file_shield.nuspec -BasePath /var/folders/4z/pbf5z13d7qxb207y7w3br8wm0000gn/T/electron-installer--72450-as30qUAoE2Iy/file_shield_1.0.0_undefined/file_shield -OutputDirectory /var/folders/4z/pbf5z13d7qxb207y7w3br8wm0000gn/T/electron-installer--72450-as30qUAoE2Iy/file_shield_1.0.0_undefined/nuget -NoDefaultExcludes
Componendo pacchetto da'file_shield.nuspec'.
Error NU5019: File not found: 'LICENSE'.
at ChildProcess.<anonymous> (/usr/local/lib/node_modules/electron-installer-windows/node_modules/@malept/cross-spawn-promise/dist/src/index.js:99:24)
at ChildProcess.emit (node:events:376:20)
at maybeClose (node:internal/child_process:1063:16)
at Socket.<anonymous> (node:internal/child_process:449:11)
at Socket.emit (node:events:376:20)
at Pipe.<anonymous> (node:net:666:12) {
cmd: 'mono',
args: [
'/usr/local/lib/node_modules/electron-installer-windows/vendor/nuget/nuget.exe',
'pack',
'/var/folders/4z/pbf5z13d7qxb207y7w3br8wm0000gn/T/electron-installer--72450-as30qUAoE2Iy/file_shield_1.0.0_undefined/nuget/file_shield.nuspec',
'-BasePath',
'/var/folders/4z/pbf5z13d7qxb207y7w3br8wm0000gn/T/electron-installer--72450-as30qUAoE2Iy/file_shield_1.0.0_undefined/file_shield',
'-OutputDirectory',
'/var/folders/4z/pbf5z13d7qxb207y7w3br8wm0000gn/T/electron-installer--72450-as30qUAoE2Iy/file_shield_1.0.0_undefined/nuget',
'-NoDefaultExcludes'
],
stdout: "Componendo pacchetto da'file_shield.nuspec'.\n",
stderr: "Error NU5019: File not found: 'LICENSE'.\n",
code: 1
} Error: Command failed with a non-zero return code (1):
mono /usr/local/lib/node_modules/electron-installer-windows/vendor/nuget/nuget.exe pack /var/folders/4z/pbf5z13d7qxb207y7w3br8wm0000gn/T/electron-installer--72450-as30qUAoE2Iy/file_shield_1.0.0_undefined/nuget/file_shield.nuspec -BasePath /var/folders/4z/pbf5z13d7qxb207y7w3br8wm0000gn/T/electron-installer--72450-as30qUAoE2Iy/file_shield_1.0.0_undefined/file_shield -OutputDirectory /var/folders/4z/pbf5z13d7qxb207y7w3br8wm0000gn/T/electron-installer--72450-as30qUAoE2Iy/file_shield_1.0.0_undefined/nuget -NoDefaultExcludes
Componendo pacchetto da'file_shield.nuspec'.
Error NU5019: File not found: 'LICENSE'.
at ChildProcess.<anonymous> (/usr/local/lib/node_modules/electron-installer-windows/node_modules/@malept/cross-spawn-promise/dist/src/index.js:99:24)
at ChildProcess.emit (node:events:376:20)
at maybeClose (node:internal/child_process:1063:16)
at Socket.<anonymous> (node:internal/child_process:449:11)
at Socket.emit (node:events:376:20)
at Pipe.<anonymous> (node:net:666:12)
创建包(这可能需要一段时间)
ExitCodeError:命令失败,返回代码为非零(1):
mono/usr/local/lib/node_modules/electron installer windows/vendor/nuget/nuget.exe pack/var/folders/4z/pbf5z13d7qxb207y7w3br8wm0000gn/T/electron installer--72450-as30qUAoE2Iy/file_shield_1.0.0_undefined/nuget/file_shield.nuspec-BasePath/var/folders/4z/pbf5z13d7qxb207y7w3br8wm0000gn/T/electron安装程序--72450-as30qUAoE2Iy/file\u shield\u 1.0.0\u undefined/file\u shield-OutputDirectory/var/folders/4z/pbf5z13d7qxb207y7w3br8wm0000gn/T/electron安装程序--72450-as30qUAoE2Iy/file\u shield\u 1.0.0\u undefined/nuget-nodefined
Componendo pacchetto da'file_shield.nuspec'。
错误NU5019:找不到文件:“许可证”。
在这个过程中。(/usr/local/lib/node_modules/electron installer windows/node_modules/@malept/cross spawn promise/dist/src/index.js:99:24)
在ChildProcess.emit(节点:事件:376:20)
在maybeClose(节点:内部/子进程:1063:16)
在插座上。(节点:内部/子进程:449:11)
在Socket.emit(节点:事件:376:20)
在管道上。(节点:net:666:12){
cmd:'mono',
args:[
“/usr/local/lib/node_modules/electron installer windows/vendor/nuget/nuget.exe”,
“打包”,
“/var/folders/4z/pbf5z13d7qxb207y7w3br8wm0000gn/T/electron安装程序--72450-as30qUAoE2Iy/file_shield_1.0.0_undefined/nuget/file_shield.nuspec”,
“-BasePath”,
“/var/folders/4z/pbf5z13d7qxb207y7w3br8wm0000gn/T/electron安装程序--72450-as30qUAoE2Iy/file_shield_1.0.0_undefined/file_shield”,
“-OutputDirectory”,
“/var/folders/4z/pbf5z13d7qxb207y7w3br8wm0000gn/T/electron安装程序--72450-as30qUAoE2Iy/file_shield_1.0.0_undefined/nuget”,
“-NoDefaultExcludes”
],
stdout:“Componendo pacchetto da'file_shield.nuspec.\n”,
stderr:“错误NU5019:找不到文件:'许可证'。\n”,
代码:1
}错误:命令失败,返回代码为非零(1):
mono/usr/local/lib/node_modules/electron installer windows/vendor/nuget/nuget.exe pack/var/folders/4z/pbf5z13d7qxb207y7w3br8wm0000gn/T/electron installer--72450-as30qUAoE2Iy/file_shield_1.0.0_undefined/nuget/file_shield.nuspec-BasePath/var/folders/4z/pbf5z13d7qxb207y7w3br8wm0000gn/T/electron安装程序--72450-as30qUAoE2Iy/file\u shield\u 1.0.0\u undefined/file\u shield-OutputDirectory/var/folders/4z/pbf5z13d7qxb207y7w3br8wm0000gn/T/electron安装程序--72450-as30qUAoE2Iy/file\u shield\u 1.0.0\u undefined/nuget-nodefined
Componendo pacchetto da'file_shield.nuspec'。
错误NU5019:找不到文件:“许可证”。
在这个过程中。(/usr/local/lib/node_modules/electron installer windows/node_modules/@malept/cross spawn promise/dist/src/index.js:99:24)
在ChildProcess.emit(节点:事件:376:20)
在maybeClose(节点:内部/子进程:1063:16)
在插座上。(节点:内部/子进程:449:11)
在Socket.emit(节点:事件:376:20)
在管道上。(节点:net:666:12)
我如何解决这个问题