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.

for some reason when executing this code in electron main:

const { default: installExtension, REACT_DEVELOPER_TOOLS, REDUX_DEVTOOLS, REACT_PERF } = require('electron-devtools-installer');

installExtension(REACT_DEVELOPER_TOOLS).then((name) => console.log(`Added Extension: ${name}`)).catch((err) => console.log('An error occurred: ', err));
installExtension(REDUX_DEVTOOLS).then((name) => console.log(`Added Extension: ${name}`)).catch((err) => console.log('An error occurred: ', err));
installExtension(REACT_PERF).then((name) => console.log(`Added Extension: ${name}`)).catch((err) => console.log('An error occurred: ', err));

i get ‘file not found’ error for [directory where electron main is]/7zip-lite/7z.exe

i was able to fix this simply by copying node_modules/7zip/7zip-lite folder over there - then electorn successfully installs all 3 tools and error goes away even if i remove copied 7zip-lite folder.

im guessing, that somewhere in code u have wrong path to 7z.exe - not pointing to node_modules …

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
psychoboltcommented, Sep 8, 2017

I am using Babel with webpack and __dirname was always resolving to ‘/’. The fix for me is to add to the webpack config:

node: { __dirname: true }

On official documentation

0reactions
MarshallOfSoundcommented, Apr 7, 2020

🎉 This issue has been resolved in version 3.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

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 >
7-Zip Portable (file archiver) | PortableApps.com
7-Zip is a file archiver (compression) utility for Windows with a great array of features including: high compression ratio in new 7z format ......
Read more >
Lite 7z zip & 7z File Extractor for Android - CNET Download
7zip file manages files and zip folders. - 7zip, zip and unzip are two unique features of this quick 7Zip & 7Zip File...
Read more >
How do I zip a folder with 7-zip but not subfolders of that folder?
Open a command prompt and if 7-Zip is not in your path, navigate to the directory with the 7-Zip files, then type: 7z.exe...
Read more >
7Z: Zip & 7Zip Files Manager - Apps on Google Play
7Z lets you take control of archive files like 7Zip (7z format) zip, rar, jar or APK on your device. Quickly and easily...
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