question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

win7 build 7zip ENOENT

See original GitHub issue

i’m trying install vueTools on build version. boilerplate - https://github.com/SimulatedGREG/electron-vue (webpack)

C:\Users\Averia\AppData\Local\Programs\averia-elab\resources\app.asar\node_modules\electron-log\renderer.js:34
[23:41:04.519] Unable to install `vue-devtools`: => Error: spawn
C:\Users\Averia\AppData\Local\Programs\averia-elab\resources\app.asar\node_modules\7zip\7zip-lite\7z.exe
ENOENT at exports._errnoException (util.js:1050:11) at
Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:367:16) at
_combinedTickCallback (internal/process/next_tick.js:80:11) at
process._tickCallback (internal/process/next_tick.js:104:9)
(anonymous)@C:\Users\Averia\AppData\Local\Programs\averia-elab\resources\app.asar\node_modules\electron-log\renderer.js:34

physical on the disk has:

  • file app.asar (~189mb)
  • path app.asar.unpacked (include node_modules/7zip/7zip-lite/7z.exe)

if you can, please make condition:

 if (!existSync(app.asar\node_modules\7zip\7zip-lite\7z.exe))
	use app.asar.unpacked\node_modules\7zip\7zip-lite\7z.exe

i trying understand this problem, but unsuccessfully(

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

16reactions
nattyricecommented, May 31, 2019

Just had this issue. What fixed it for me was setting:

  node: {
    __dirname: true
  }

in my webpack.config.js

I hope it helps!

2reactions
MarshallOfSoundcommented, Apr 7, 2020

This is a webpack config issue, see the above for the standard webpack config required to make this kind of stuff work ☝️

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I debug "Error: spawn ENOENT" on node.js?
NOTE: This error is almost always caused because the command does not exist, because the working directory does not exist, or from a...
Read more >
7-Zip
7-Zip is a file archiver with a high compression ratio. Download 7-Zip 22.01 (2022-07-15) for Windows: Link, Type, Windows, Size. Download .exe, 64-bit...
Read more >
Installing Julia/Atom/Juno on Corporate Machine
Looks like HttpParser has a zipped dependency and build.jl is trying unzip it using 7z . Try installing 7-Zip: http://www.7-zip.org/.
Read more >
[Tutorial] Building 7-Zip 16.04 for Beginners, VisualStudio ...
The solution can be use to compile all the 7-Zip files (core and extra), in either 32bit or 64bit (Release only). The Debug...
Read more >
7-Zip not working from the DOS prompt or command line?
6 Answers 6 · Go to C:\Program Files\7-Zip and copy 7z.exe file · Go to C:\Program Files\Git\usr\bin and paste 7z.exe file.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found