Example doesn't seem to work on macOs.
KelSolaar opened this issue · 3 comments
KelSolaar commented
fyears commented
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 commented
That was exactly it! Thank you :) Closing this!
fyears commented
No problem. Once you have some products based on it, don't hesitate to share it in your blog! 😜