colinskow / angular-electron-dream-starter

:tada: An Angular Electron Starter kit featuring Webpack, Angular 4 (Router, Http, Forms, Services, ngrx, Tests, E2E, Coverage), Karma, Spectron, Jasmine, Istanbul, and TypeScript
MIT License
162 stars 54 forks source link

npm install and start issue on window 10 #5

Closed orlandodemauro closed 6 years ago

orlandodemauro commented 7 years ago

Note: for support questions, please use one of these channels: Chat: AngularClass.slack or Twitter: @AngularClass

Report a bug.

Running npm istall is generating an error

hi first of all compliment for your work. I´m trying to run in and after run npm install I´m getting the following error:

fcopy-pre-bundled@0.1.2 install C:\git\angular-electron-dream-starter\node_modules\fcopy-pre-bundled node-gyp rebuild

C:\git\angular-electron-dream-starter\node_modules\fcopy-pre-bundled>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild ) gyp: binding.gyp not found (cwd: C:\git\angular-electron-dream-starter\node_modules\fcopy-pre-bundled) while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:305:16) gyp ERR! stack at emitTwo (events.js:106:13) gyp ERR! stack at ChildProcess.emit (events.js:191:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) gyp ERR! System Windows_NT 10.0.14393 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\git\angular-electron-dream-starter\node_modules\fcopy-pre-bundled gyp ERR! node -v v6.11.0 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok angular-electron-dream-starter@6.1.1 C:\git\angular-electron-dream-starter `-- UNMET PEER DEPENDENCY chai@4.1.0

I fixed it upgrating electron-builder to 19.2.5.

window 10, node 6.11.0 and npm 3.10.10

colinskow commented 7 years ago

Thanks for reporting, I will upgrade to the latest Electron and Electron-Builder in the next release.

savarex commented 7 years ago

Hi Orlando, I had similar issues on my machine (same os and npm version).

After some tries, I solved them simply upgrading npm.

Please, try to update your npm to latest (or at least 5.x)

You can do that easily with the following command: npm install -g npm

It should be enough ;)

Emanuele

colinskow commented 6 years ago

This should be fixed now.