arboleya / electrify

Package your Meteor apps with Electron, and butter
MIT License
247 stars 52 forks source link

Error "ENOENT: no such file or directory" on building package #41

Open thomaskelder opened 8 years ago

thomaskelder commented 8 years ago

When trying to package my meteor app using electrify (version 2.1.4), I get the following error:

INFO  electrify:index:  initializing
INFO  electrify:plugins:  use  mongodb
INFO  electrify:plugins:  use  nodejs
INFO  electrify:plugins:  use  socket
INFO  electrify:app:  bundling app
INFO  electrify:scaffold:  ensuring basic structure
INFO  electrify:plugins:  ensuring electrify dependencies
INFO  electrify:plugins:  load configured plugins []
INFO  electrify:plugins:  acquire
INFO  electrify:plugins:mongodb:  mongo already acquired, moving on
INFO  electrify:plugins:mongodb:  mongod already acquired, moving on
INFO  electrify:plugins:nodejs:  nodejs already acquired, moving on
INFO  electrify:plugins:socket:  nothing to acquire, skipping
INFO  electrify:app:  bundling meteor
INFO  electrify:app:  ensuring meteor dependencies
INFO  electrify:electron:  packaging "my-electrified-app" for platform linux-x64 using electron v0.35.6
Packaging app for platform linux x64 using electron v0.35.6

/usr/lib/node_modules/electrify/lib/electron.js:55
    if(err) throw err;
            ^
Error: ENOENT: no such file or directory, stat '/home/[...]/.electrify/app/programs/server/npm/react-runtime-prod/node_modules/react/node_modules/envify/node_modules/jstransform/node_modules/esprima-fb/.#README.md'

When looking at the file it cannot find, it turns out to be a broken symlink with target "ben@ravus.42159". The folder does contains a valid file named "#README.md#", not sure if that has anything to do with this issue. Any ideas?

neurobe commented 8 years ago

See #35. Looks like same issue to me. Limited to Linux I think. Pull request to fix it is extant.

thomaskelder commented 8 years ago

Indeed, it looks like a linux specific issue, I tried building the same app on Windows and that works. The fix in the pull request doesn't seem to solve this issue. I installed the package from the corresponding repository using:

sudo npm install -g git+https://github.com/gabrielstuff/electrify.git#59a2d8596dd9ffa25432423e42b74c3962b80213

But using this version results in the same error.

neurobe commented 8 years ago

Well installing that package fixed my problem - electrify now packages under Linux Mint x64. Thank you.

achtan commented 8 years ago

hi i'm getting the same error on mac...