New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example doesn't seem to work on macOs. #7

Closed
KelSolaar opened this Issue Feb 20, 2017 · 3 comments

Comments

Projects
None yet
2 participants
@KelSolaar

KelSolaar commented Feb 20, 2017

Hi,

I didn't manage to get the example to work on macOs:

image

The Python end seems to be fine though:

(python-2.7) Kali:electron-python-example kelsolaar$ python pycalc/api.py
start running on tcp://127.0.0.1:4242
@fyears

This comment has been minimized.

Owner

fyears commented Feb 20, 2017

Hi @KelSolaar ,

Thank you for your interest. You did not set the environment variable correctly. Check out this section in my post.

Or, just remove every npm caches and reinstall:

# env
export npm_config_target=1.4.15 # electron version
export npm_config_arch=x64
export npm_config_target_arch=x64
export npm_config_disturl=https://atom.io/download/electron
export npm_config_runtime=electron
export npm_config_build_from_source=true
npm config ls

# clean caches, very important!!!!!
rm -rf ~/.node-gyp
rm -rf ~/.electron-gyp
rm -rf ./node_modules


# install everything based on the package.json
npm install

# run
./node_modules/.bin/electron .
@KelSolaar

This comment has been minimized.

KelSolaar commented Feb 20, 2017

That was exactly it! Thank you :) Closing this!

@KelSolaar KelSolaar closed this Feb 20, 2017

@fyears

This comment has been minimized.

Owner

fyears commented Feb 21, 2017

@KelSolaar

No problem. Once you have some products based on it, don't hesitate to share it in your blog! 😜

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment