Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

229
Views
Unpacking electron apps

Since discord is an electron app, i unpacked the discord desktop core using asar. Then i ran npm install in the enviroment and tried to pack the core again just to see if it works. This was the command: asar pack discord_unpacked core.asar, and I got the following error:

node:fs:2527
        handleErrorFromBinding(ctx);
        ^

Error: ENOENT: no such file or directory, stat 'C:\Users\Administrator\AppData\Local\Discord\app-1.0.9004\modules\discord_desktop_core-3\discord_desktop_core\discord_unpacked\node_modules\@discordapp\desktop-electron-test-rpc-protocol'
    at Object.realpathSync (node:fs:2527:9)
    at Filesystem.insertLink (C:\Users\Administrator\AppData\Roaming\npm\node_modules\asar\lib\filesystem.js:99:62)
    at handleFile (C:\Users\Administrator\AppData\Roaming\npm\node_modules\asar\lib\asar.js:132:20)
    at async next (C:\Users\Administrator\AppData\Roaming\npm\node_modules\asar\lib\asar.js:148:5) {
  errno: -4058,
  syscall: 'stat',
  code: 'ENOENT',
  path: 'C:\\Users\\Administrator\\AppData\\Local\\Discord\\app-1.0.9004\\modules\\discord_desktop_core-3\\discord_desktop_core\\discord_unpacked\\node_modules\\@discordapp\\desktop-electron-test-rpc-protocol'
}

Node.js v17.9.0

I don't know why this happens, maybe I need to use an older node version?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!