Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install fails on windows with error in extract-file-icons #59

Open
JoCa96 opened this issue Apr 1, 2022 · 2 comments
Open

Install fails on windows with error in extract-file-icons #59

JoCa96 opened this issue Apr 1, 2022 · 2 comments

Comments

@JoCa96
Copy link

JoCa96 commented Apr 1, 2022

Bug description

I am trying to build our electron app with this package on a windows agent.
Unfortunately the installation fails with the following error.

8734 verbose lifecycle [email protected]~install: CWD: D:\a\1\buildsources\packages\launchpad-native\node_modules\extract-file-icon
8735 silly lifecycle [email protected]~install: Args: [ '/d /s /c', 'npm run rebuild' ]
8736 silly lifecycle [email protected]~install: Returned: code: 1  signal: null
8737 info lifecycle [email protected]~install: Failed to exec install script
8738 verbose teardown shutting down workers.
8739 info teardown Done in 0s
8740 verbose stack Error: [email protected] install: `npm run rebuild`
8740 verbose stack Exit status 1
8740 verbose stack     at EventEmitter.<anonymous> (C:\hostedtoolcache\windows\node\14.19.0\x64\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
8740 verbose stack     at EventEmitter.emit (events.js:400:28)
8740 verbose stack     at ChildProcess.<anonymous> (C:\hostedtoolcache\windows\node\14.19.0\x64\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
8740 verbose stack     at ChildProcess.emit (events.js:400:28)
8740 verbose stack     at maybeClose (internal/child_process.js:1058:16)
8740 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5)
8741 verbose pkgid [email protected]
8742 verbose cwd D:\a\1\buildsources\packages\launchpad-native
8743 verbose Windows_NT 10.0.20348
8744 verbose argv "C:\\hostedtoolcache\\windows\\node\\14.19.0\\x64\\node.exe" "C:\\hostedtoolcache\\windows\\node\\14.19.0\\x64\\node_modules\\npm\\bin\\npm-cli.js" "ci"
8745 verbose node v14.19.0
8746 verbose npm  v6.14.16
8747 error code ELIFECYCLE
8748 error errno 1
8749 error [email protected] install: `npm run rebuild`
8749 error Exit status 1
8750 error Failed at the [email protected] install script.
8750 error This is probably not a problem with npm. There is likely additional logging output above.
8751 verbose exit [ 1, true ]

##[error]Error: Npm failed with return code: 1

Details:

  • Operating System: windows-latest
  • node-window-manager version: 2.2.4
  • Last known working node-window-manager version: -

Additional context
The installation works on MacOS

@JoCa96
Copy link
Author

JoCa96 commented Apr 1, 2022

We use Azure DevOps. We figured out, that switching back to the windows-2019 agent works around the issue.
Microsoft recently switched the "windows-latest" from "windows-2019" to "windows-2022", that explains why it suddenly stopped working.

@KhalilSelyan
Copy link

Any current fix to this issues ? as i'm running this on my own machine, rolling back OS version is not an option

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants