We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using asar command-line utility on windows fails with "Cannot find module".
npm install @electron
npm install @electron\asar
.\node_modules\.bin\asar
No output or error message
Receive the following error message:
node:internal/modules/cjs/loader:1080 throw err; ^ Error: Cannot find module 'C:\...\Source\node_modules\@electron\asar\bin\asar.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15) at Module._load (node:internal/modules/cjs/loader:922:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:23:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }
Download the ajar.js file from the repo to the node_modules\@electron\asar\bin\ folder.
ajar.js
node_modules\@electron\asar\bin\
The text was updated successfully, but these errors were encountered:
Sounds like your installation is just corrupted, have you tried deleting node_modules and running npm install again?
node_modules
npm install
Sorry, something went wrong.
Problem was on my end. Thanks for the help!
No branches or pull requests
Description
Using asar command-line utility on windows fails with "Cannot find module".
Environment
Steps to Reproduce
npm install @electron
npm install @electron\asar
.\node_modules\.bin\asar
Expected Results
No output or error message
Actual Results
Receive the following error message:
Workaround
Download the
ajar.js
file from the repo to thenode_modules\@electron\asar\bin\
folder.The text was updated successfully, but these errors were encountered: