Building Asar broken with asar@0.14.4
See original GitHub issue- I have read the contribution documentation for this project.
- I agree to follow the code of conduct that this project follows, as appropriate.
- I have searched the issue tracker for an issue that matches the one I want to file, without success.
Hello! If you do a fresh install with npm i electron-packager
it brings down asar@0.14.4.
Running electron-packager . --asar
then fails with an ENOENT error as the file destination is no-longer correct: (it looks like the temp directory is used twice).
As a quick fix I fixed the version of asar:
npm i asar@0.14.3 -D
Error
flora-colossus creating walker with rootModule=dist +0ms
electron-packager Running asar with the options {} +14ms
fs.js:941
binding.lstat(pathModule._makeLong(path));
^
Error: ENOENT: no such file or directory, lstat '%TMP%\electron-packager\win32-x64\app\resources\app\%TMP%\electron-packager\win32-x64\app\resources\app\main.js'
at Object.fs.lstatSync (fs.js:941:11)
at handleFile (D:\dev\trading-ui\electron-host\node_modules\asar\lib\asar.js:116:23)
at next (D:\dev\trading-ui\electron-host\node_modules\asar\lib\asar.js:170:12)
at Object.module.exports.createPackageFromFiles (D:\dev\trading-ui\electron-host\node_modules\asar\lib\asar.js:175:10)
at D:\dev\trading-ui\electron-host\node_modules\asar\lib\asar.js:50:20
at D:\dev\trading-ui\electron-host\node_modules\asar\lib\crawlfs.js:19:12
at f (D:\dev\trading-ui\electron-host\node_modules\once\once.js:25:25)
at Glob.<anonymous> (D:\dev\trading-ui\electron-host\node_modules\asar\node_modules\glob\glob.js:146:7)
at emitOne (events.js:116:13)
at Glob.emit (events.js:211:7)
at Glob._finish (D:\dev\trading-ui\electron-host\node_modules\asar\node_modules\glob\glob.js:185:8)
at done (D:\dev\trading-ui\electron-host\node_modules\asar\node_modules\glob\glob.js:172:12)
at Glob._processGlobStar2 (D:\dev\trading-ui\electron-host\node_modules\asar\node_modules\glob\glob.js:614:12)
at D:\dev\trading-ui\electron-host\node_modules\asar\node_modules\glob\glob.js:603:10
at RES (D:\dev\trading-ui\electron-host\node_modules\inflight\inflight.js:31:16)
at f (D:\dev\trading-ui\electron-host\node_modules\once\once.js:25:25)
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Untitled
Wrap clothing without a box, Pousadas em carmopolis mg, Break free live 2015, ... London melbourne, Asaro head ebay, Basic english story books, ......
Read more >recycled water feasibility study - City of Pleasanton
Permeability. aSAR = 0 - 3 and EC. >0.7. 0.7-0.2. <0.2. ---. ---. = 3 - 6 and EC. >1.2. 1.2-0.3. <0.3. aSAR=4.3....
Read more >tables summarizing natural: Topics by Science.gov
All of the detailed tables contain extensive row categories of building ... These tables are broken down according to Minnesota's four Forest Survey...
Read more >4th International Workshop on Modeling the Ocean
break. 09:50. Session -1. Alejandro Orfila +. Jörg-Olaf Wolff ... addition to their ability in building up a coastal forecasting system.
Read more >RECORD OF DECISION (RODS)
removal of buildings and plant production equipment. Waste materials generated during these activities were placed into the South Landfill.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
To people affected by this:
This is a confirmed bug with the
asar
module on Windows. Per the original post, there is a workaround to pin theasar
version to the last known good version.It would be appreciated if people refrained from saying “I ran into the same issue, the workaround worked”, as it causes unnecessary notifications for people subscribing to this issue. Instead, use the reaction emoji.
It would also be appreciated if someone could file a detailed bug report at the asar repository so its developers know about the regression.I have filed https://github.com/electron/asar/issues/158.This should be fixed in asar 0.14.5. Please let upstream developers know if it still doesn’t work, after you’ve verified that
asar
has indeed been updated to >= 0.14.5 for the Electron Packager installation you’re using. A common mistake is updating the Packager dependencies for the project-specific installation, and then running the globally-installed Packager.