Comments (7)
I was getting these errors also, but when I do the repro steps using your repo, It ran fine. (note, i ran it with node v 0.12.4)
from electron-prebuilt.
The only known bug I can think of that may be affecting this is max-mapper/extract-zip#6, which prevents some empty directories from getting extracted. I would be surprised if that was causing this though.
Also make sure you clear your cache in ~/.electron
, it's possible its using a bad cached version from there too (thats another open issue #51)
from electron-prebuilt.
@maxogden interestingly, the issue you're pointing to mentions those *.lproj
language files; it is exactly those that i have found to make the difference between an *.app
downloaded by electron-prebuilt
and ones that i manually downloaded.
I've updated the sample app (removed crash-reporter
which caused an exception by itself; added some log
statements to see which parts get executed) and cleaned the ~/.electron
folder, but to no avail.
UPDATE I've just extracted the downloaded archive
~/.electron/electron-v0.30.6-darwin-x64.zip
by double-clicking on it, and moved it to
.../electron-sample-1/node_modules/electron-prebuilt/dist/Electron.app
overwriting the file that was there. That works! IOW there's not necessarily a difference between the archive that e-prebuilt downloads and the official release, it's the unpacking of that archive that likely gets it wrong.
IMHO both git and any archiver that ignores empty files and empty folders have a bug. After all, those tools should replicate application state as faithfully as possible. Saying that empty files and folders serve no purpose is wrong; if your app has a line if( fs.exists( ... ) )
that is as valid a statement about data in your program as any other and can make a difference, so all the empty stuff should be replicated as well.
from electron-prebuilt.
@loveencounterflow thanks for the investigation. Looks like if max-mapper/extract-zip#6 gets fixed then this issue will get fixed as well
from electron-prebuilt.
great news! (next someone should ask 1) why those empty *.lproj
folders are there anyway and 2) why some part of the app crashes if they're not; i'd guess 1) they're not needed and 2) someone forgot to program forgivingly)
from electron-prebuilt.
@loveencounterflow electron/electron#2759
from electron-prebuilt.
fixed by 1.1.0 of extract-zip
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.