You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not able to build a Vue project with pnpm. It works with npm.
Important
Windows 10
pnpm version: 9.9.0
npm version: 10.8.3
Steps to reproduce the issue:
pnpm create electron-vite electron-vue-project
Select Vue
cd electron-vue-project
pnpm i
pnpm build
Fix TypeScript error by removing const require = in electron/main.ts
Run pnpm build again
These steps result in the following console output:
electron-builder version=24.13.3 os=10.0.19045
• loaded configuration file=C:\Users\micha\Desktop\electron-vue-project\electron-builder.json5
• description is missed in the package.json appPackageFile=C:\Users\micha\Desktop\electron-vue-project\package.json
• author is missed in the package.json appPackageFile=C:\Users\micha\Desktop\electron-vue-project\package.json
• writing effective config file=release\0.0.0\builder-effective-config.yaml
• packaging platform=win32 arch=x64 electron=30.4.0 appOutDir=release\0.0.0\win-unpacked
• default Electron icon is used reason=application icon is not set
• building target=nsis file=release\0.0.0\YourAppName-Windows-0.0.0-Setup.exe archs=x64 oneClick=false perMachine=false
⨯ C:\Users\micha\AppData\Local\electron-builder\Cache\nsis\nsis-3.0.4.1\Bin\makensis.exe process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Exit code:
1
Output:
Command line defined: "APP_ID=YourAppID"
Command line defined: "APP_GUID=e8a1d95b-2268-5534-a8b7-a46da8c43aa5"
Command line defined: "UNINSTALL_APP_KEY=e8a1d95b-2268-5534-a8b7-a46da8c43aa5"
Command line defined: "PRODUCT_NAME=YourAppName"
Command line defined: "PRODUCT_FILENAME=YourAppName"
Command line defined: "APP_FILENAME=YourAppName"
Command line defined: "APP_DESCRIPTION="
Command line defined: "VERSION=0.0.0"
Command line defined: "PROJECT_DIR=C:\Users\micha\Desktop\electron-vue-project"
Command line defined: "BUILD_RESOURCES_DIR=C:\Users\micha\Desktop\electron-vue-project\build"
Command line defined: "APP_PACKAGE_NAME=electron-vue-project"
Command line defined: "APP_64=C:\Users\micha\Desktop\electron-vue-project\release\0.0.0\electron-vue-project-0.0.0-x64.nsis.7z"
Command line defined: "APP_64_NAME=electron-vue-project-0.0.0-x64.nsis.7z"
Command line defined: "APP_64_HASH=E6D6A043152CD14803C96A6CECEE75685AF8FE1C769B2BDA875DBA562A138C8FB7434AD2A54F06939C89CB0C649D709C09392DC32600CA0BEACB95F3464257DD"
Command line defined: "APP_64_UNPACKED_SIZE=262354"
Command line defined: "APP_INSTALLER_STORE_FILE=electron-vue-project-updater\installer.exe"
Command line defined: "COMPRESSION_METHOD=7z"
Command line defined: "MULTIUSER_INSTALLMODE_ALLOW_ELEVATION"
Command line defined: "INSTALL_MODE_PER_ALL_USERS_REQUIRED"
Command line defined: "allowToChangeInstallationDirectory"
Command line defined: "SHORTCUT_NAME=YourAppName"
Command line defined: "UNINSTALL_DISPLAY_NAME=YourAppName 0.0.0"
Command line defined: "MUI_WELCOMEFINISHPAGE_BITMAP=${NSISDIR}\Contrib\Graphics\Wizard\nsis3-metro.bmp"
Command line defined: "MUI_UNWELCOMEFINISHPAGE_BITMAP=${NSISDIR}\Contrib\Graphics\Wizard\nsis3-metro.bmp"
Command line defined: "ESTIMATED_SIZE=262354"
Command line defined: "COMPRESS=auto"
Command line defined: "BUILD_UNINSTALLER"
Command line defined: "UNINSTALLER_OUT_FILE=C:\Users\micha\Desktop\electron-vue-project\release\0.0.0\__uninstaller-nsis-electron-vue-project.exe"
Processing config: C:\Users\micha\AppData\Local\electron-builder\Cache\nsis\nsis-3.0.4.1\nsisconf.nsh
Processing script file: "<stdin>" (UTF8)
Error output:
!include: could not open file: "C:\Users\micha\Desktop\electron-vue-project\node_modules\.pnpm\app-builder-lib@24.13.3_dmg-builder@24.13.3_electron-builder-squirrel-windows@24.13.3__electr_jhkj5etvr5lkpiqd5wtx2uh6ge\node_modules\app-builder-lib\templates\nsis\include\allowOnlyOneInstallerInstance.nsh"
Error in script "<stdin>" on line 88 -- aborting creation process
failedTask=build stackTrace=Error: C:\Users\micha\AppData\Local\electron-builder\Cache\nsis\nsis-3.0.4.1\Bin\makensis.exe process failed ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
Exit code:
1
Output:
Command line defined: "APP_ID=YourAppID"
Command line defined: "APP_GUID=e8a1d95b-2268-5534-a8b7-a46da8c43aa5"
Command line defined: "UNINSTALL_APP_KEY=e8a1d95b-2268-5534-a8b7-a46da8c43aa5"
Command line defined: "PRODUCT_NAME=YourAppName"
Command line defined: "PRODUCT_FILENAME=YourAppName"
Command line defined: "APP_FILENAME=YourAppName"
Command line defined: "APP_DESCRIPTION="
Command line defined: "VERSION=0.0.0"
Command line defined: "PROJECT_DIR=C:\Users\micha\Desktop\electron-vue-project"
Command line defined: "BUILD_RESOURCES_DIR=C:\Users\micha\Desktop\electron-vue-project\build"
Command line defined: "APP_PACKAGE_NAME=electron-vue-project"
Command line defined: "APP_64=C:\Users\micha\Desktop\electron-vue-project\release\0.0.0\electron-vue-project-0.0.0-x64.nsis.7z"
Command line defined: "APP_64_NAME=electron-vue-project-0.0.0-x64.nsis.7z"
Command line defined: "APP_64_HASH=E6D6A043152CD14803C96A6CECEE75685AF8FE1C769B2BDA875DBA562A138C8FB7434AD2A54F06939C89CB0C649D709C09392DC32600CA0BEACB95F3464257DD"
Command line defined: "APP_64_UNPACKED_SIZE=262354"
Command line defined: "APP_INSTALLER_STORE_FILE=electron-vue-project-updater\installer.exe"
Command line defined: "COMPRESSION_METHOD=7z"
Command line defined: "MULTIUSER_INSTALLMODE_ALLOW_ELEVATION"
Command line defined: "INSTALL_MODE_PER_ALL_USERS_REQUIRED"
Command line defined: "allowToChangeInstallationDirectory"
Command line defined: "SHORTCUT_NAME=YourAppName"
Command line defined: "UNINSTALL_DISPLAY_NAME=YourAppName 0.0.0"
Command line defined: "MUI_WELCOMEFINISHPAGE_BITMAP=${NSISDIR}\Contrib\Graphics\Wizard\nsis3-metro.bmp"
Command line defined: "MUI_UNWELCOMEFINISHPAGE_BITMAP=${NSISDIR}\Contrib\Graphics\Wizard\nsis3-metro.bmp"
Command line defined: "ESTIMATED_SIZE=262354"
Command line defined: "COMPRESS=auto"
Command line defined: "BUILD_UNINSTALLER"
Command line defined: "UNINSTALLER_OUT_FILE=C:\Users\micha\Desktop\electron-vue-project\release\0.0.0\__uninstaller-nsis-electron-vue-project.exe"
Processing config: C:\Users\micha\AppData\Local\electron-builder\Cache\nsis\nsis-3.0.4.1\nsisconf.nsh
Processing script file: "<stdin>" (UTF8)
Error output:
!include: could not open file: "C:\Users\micha\Desktop\electron-vue-project\node_modules\.pnpm\app-builder-lib@24.13.3_dmg-builder@24.13.3_electron-builder-squirrel-windows@24.13.3__electr_jhkj5etvr5lkpiqd5wtx2uh6ge\node_modules\app-builder-lib\templates\nsis\include\allowOnlyOneInstallerInstance.nsh"
Error in script "<stdin>" on line 88 -- aborting creation process
at ChildProcess.<anonymous> (C:\Users\micha\Desktop\electron-vue-project\node_modules\.pnpm\builder-util@24.13.1\node_modules\builder-util\src\util.ts:252:14)
at Object.onceWrapper (node:events:634:26)
at ChildProcess.emit (node:events:519:28)
at ChildProcess.cp.emit (C:\Users\micha\Desktop\electron-vue-project\node_modules\.pnpm\cross-spawn@7.0.3\node_modules\cross-spawn\lib\enoent.js:34:29)
at maybeClose (node:internal/child_process:1105:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:305:5)
ELIFECYCLE Command failed with exit code 1.
I'm not able to build a Vue project with pnpm. It works with npm.
Important
Steps to reproduce the issue:
pnpm create electron-vite electron-vue-projectVuecd electron-vue-projectpnpm ipnpm buildconst require =inelectron/main.tspnpm buildagainThese steps result in the following console output:
vue.build.issue.mp4
How can this issue be fixed?