Skip to content
This repository was archived by the owner on Dec 11, 2019. It is now read-only.

running browser fails "electron: not found"; building electron fails #307

Closed
smcnally opened this issue Jan 24, 2016 · 6 comments
Closed

Comments

@smcnally
Copy link

Running Ubuntu 15.04. Successfully built with help from the Issue 214 thread.

Can successfully run server and tests; running browser fails with "electron: not found."

Despite main README suggesting not needing to build electron, am doing so using these instructions.

got through much of the build Debug target process, then failed with:

clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

Will try again later

@Adejair
Copy link
Contributor

Adejair commented Jan 24, 2016

I have same error, I solved this error installing electron-prebuilt from npm, npm install electron-prebuilt --save

I advise not to do it, because has electron-prebuilt prepared to use in brave, to use it is easy.

git clone https://github.com/brave/electron-prebuilt 
cd electron-prebuilt
./electron PATH_TO_BRAVE

@smcnally
Copy link
Author

Thanks, @Adejair. npm install completed successfully with a warning:

npm WARN ENOENT ENOENT: no such file or directory, open '~/browser-laptop/node_modules/electron-rebuild/package.json'

After cloning the repo, I've got an electron executable in

/browser-laptop/electron-prebuilt/dist

but not in

/browser-laptop/electron-prebuilt/

From the latter dir,

./electron ~/browser-laptop/

gives me a "command not found." From

/browser-laptop/electron-prebuilt/dist

./electron ~/browser-laptop/ gives me this error:

Error opening app
The app provided is not a valid Electron app, please read the docs on how to write one:
https://github.com/atom/electron/tree/v0.36.2/docs

Error: Cannot find module 'sqlite3'

which I've seen referenced in other tickets. Will continue digging.

@Adejair
Copy link
Contributor

Adejair commented Jan 25, 2016

Try install sqlite3 manual(in browser-laptop path) npm install sqlite3 --unsafe-perm

and try command ./electron ~/browser-laptop

@smcnally
Copy link
Author

Thanks, @Adejair. Installed sqlite3 in

~/browser-laptop/

and

~/browser-laptop/electron-prebuilt/dist

and getting new errors re abp-filter-parser-cpp. I'll review other tickets for that.

@luixxiul
Copy link
Contributor

This should work.

rm -rf node_modules/
rm -rf ~/.electron
npm i

If not let me know to reopen the issue.

@renhuihhh
Copy link

https://www.npmjs.com/package/electron-prebuilt this maybe solve the problem "electron: not found"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants