Skip to content
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

Build script fails... #3

Open
lambdamusic opened this issue Apr 28, 2016 · 2 comments
Open

Build script fails... #3

lambdamusic opened this issue Apr 28, 2016 · 2 comments

Comments

@lambdamusic
Copy link

Amazing tutorial, thanks so much.

When I try to build the application though, I keep getting this error...

Here's the output:

>npm run-script package

> [email protected] package /Users/michele.pasin/Dropbox/code/electron/sound-machine-electron-guide
> electron-packager ./ SoundMachine --all --out ~/Desktop/SoundMachine --version 0.30.2 --overwrite --icon=./app/img/app-icon.icns

The strict-ssl parameter is deprecated, use download.strictSSL instead
The strict-ssl parameter is deprecated, use download.strictSSL instead
The strict-ssl parameter is deprecated, use download.strictSSL instead
The strict-ssl parameter is deprecated, use download.strictSSL instead
The strict-ssl parameter is deprecated, use download.strictSSL instead
The strict-ssl parameter is deprecated, use download.strictSSL instead
Packaging app for platform linux ia32 using electron v0.30.2
Packaging app for platform win32 ia32 using electron v0.30.2
spawn wine ENOENT

npm ERR! Darwin 15.3.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run-script" "package"
npm ERR! node v4.4.3
npm ERR! npm  v2.15.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] package: `electron-packager ./ SoundMachine --all --out ~/Desktop/SoundMachine --version 0.30.2 --overwrite --icon=./app/img/app-icon.icns`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] package script 'electron-packager ./ SoundMachine --all --out ~/Desktop/SoundMachine --version 0.30.2 --overwrite --icon=./app/img/app-icon.icns'.
npm ERR! This is most likely a problem with the sound_machine package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     electron-packager ./ SoundMachine --all --out ~/Desktop/SoundMachine --version 0.30.2 --overwrite --icon=./app/img/app-icon.icns
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs sound_machine
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR!     npm owner ls sound_machine
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/michele.pasin/Dropbox/code/electron/sound-machine-electron-guide/npm-debug.log
@drewgonzales360
Copy link

drewgonzales360 commented Aug 22, 2016

I'm not sure if this will do it for you, but I had a similar issue and this worked for me.

Electron made updates since the tutorial was written. In your main.js file, electron needs to be added the new way. I was having the same issue.

const electron = require('electron');
const {app} = electron;
const {BrowserWindow} = electron;

@flaschbier
Copy link

today, one might prefer

const {app, BrowserWindow} = require('electron');

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

No branches or pull requests

3 participants