Comments (3)
Ok I seem to have figured out the issue by comparing with the prebuilt versions available here https://github.com/atom/electron/releases
It seems npm install -g electron-prebuilt
is not including a default .asar
archive (in this case atom.asar
) in the resources folder. The following 2 folders are missing from the npm-install version and the .zip from electron releases page
- resources
- locales
Is this difference between the two intended ?
Might just be a issue with unzipping in electron-download
from electron-prebuilt.
Seems this is not exclusive to Windows, just got it on linux x64. Culprit looks to be the recent bump to the extract-zip
module, it doesn't seem to extract directories correctly for the electron zips. Filed an issue: max-mapper/extract-zip#10.
$ npm install
> [email protected] postinstall /home/mal/code/mal/photon/node_modules/electron-prebuilt
> node install.js
[email protected] node_modules/extract-zip
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected], [email protected])
$ ll dist/
total 93956
-rw-r--r-- 1 mal mal 8743327 Sep 16 08:48 content_shell.pak
-rwxr-xr-x 1 mal mal 58922768 Sep 16 08:48 electron
-rw-r--r-- 1 mal mal 10206624 Sep 16 08:48 icudtl.dat
-rw-r--r-- 1 mal mal 520152 Sep 16 08:48 libgcrypt.so.11
-rwxr-xr-x 1 mal mal 16765152 Sep 16 08:48 libnode.so
-rw-r--r-- 1 mal mal 31256 Sep 16 08:48 libnotify.so.4
-rw-r--r-- 1 mal mal 1055 Sep 16 08:48 LICENSE
-rw-r--r-- 1 mal mal 410849 Sep 16 08:48 natives_blob.bin
-rw-r--r-- 1 mal mal 587068 Sep 16 08:48 snapshot_blob.bin
-rw-r--r-- 1 mal mal 7 Sep 16 08:48 version
$ npm install
-
> [email protected] postinstall /home/mal/code/mal/photon/node_modules/electron-prebuilt
> node install.js
[email protected] node_modules/extract-zip
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected])
$ ll dist
total 93964
-rw-r--r-- 1 mal mal 8743327 Sep 16 08:47 content_shell.pak
-rwxr-xr-x 1 mal mal 58922768 Sep 16 08:47 electron
-rw-r--r-- 1 mal mal 10206624 Sep 16 08:47 icudtl.dat
-rw-r--r-- 1 mal mal 520152 Sep 16 08:47 libgcrypt.so.11
-rwxr-xr-x 1 mal mal 16765152 Sep 16 08:47 libnode.so
-rw-r--r-- 1 mal mal 31256 Sep 16 08:47 libnotify.so.4
-rw-r--r-- 1 mal mal 1055 Sep 16 08:47 LICENSE
+drwxrwxr-x 2 mal mal 4096 Sep 16 08:47 locales
-rw-r--r-- 1 mal mal 410849 Sep 16 08:47 natives_blob.bin
+drwxrwxr-x 3 mal mal 4096 Sep 16 08:47 resources
-rw-r--r-- 1 mal mal 587068 Sep 16 08:47 snapshot_blob.bin
-rw-r--r-- 1 mal mal 7 Sep 16 08:47 version
from electron-prebuilt.
Thanks for the detailed bug reports, the issue has been fixed with extract-zip 1.1.1, so reinstalling electron-prebuilt should get the new working version
from electron-prebuilt.
Related Issues (20)
- OpenBSD as a supportet platform? HOT 2
- Unable to install Electron with the quick-start tutorial HOT 7
- "sudo npm install -g electron" fails HOT 1
- Electron not installing (Windows 10) HOT 2
- Got stuck after npm install -g HOT 1
- Error while installing npm in windows 10 HOT 1
- Mac: Failed at the [email protected] postinstall script 'node install.js'. HOT 4
- npm install hangs HOT 3
- Dependency to @types/node makes electron package incompatible with typescript projects not using commonjs HOT 11
- Can't install electron 1.7.1 locally using npm 5 HOT 10
- Install on Bash on Ubuntu on Windows (WSL) HOT 13
- Postinstall script failing HOT 22
- Error: Generated checksum for "electron-v1.4.13-linux-x64.zip" did not match expected checksum. HOT 11
- Prebuilt electron package for Ubuntu 10.04 32 bits HOT 1
- node (vs. nodejs) is required when installing electron HOT 5
- Can't install in Windows10 HOT 1
- Change electron binary path via environment variable? HOT 2
- Electron not installing on Mac Os High Sierra HOT 1
- npm ERR! [email protected] postinstall
- Error while installing electron on Mac
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-prebuilt.