electron-angular-boilerplate icon indicating copy to clipboard operation
electron-angular-boilerplate copied to clipboard

npm install error in Windows 10

Open ivanhdzd opened this issue 9 years ago • 5 comments

When try to install npm dependencies gitbash show this:

npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: [email protected] npm WARN [email protected] requires a peer of jasmine-core@* but none was installed. npm ERR! Windows_NT 10.0.10586 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" npm ERR! node v6.3.0 npm ERR! npm v3.10.3 npm ERR! code ELIFECYCLE npm ERR! [email protected] postinstall: ./node_modules/bower/bin/bower install && ./node_modules/jspm/jspm.js install npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] postinstall script './node_modules/bower/bin/bower install && ./node_modules/jspm/jspm.js install'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the electron-angular-boilerplate package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! ./node_modules/bower/bin/bower install && ./node_modules/jspm/jspm.js install npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs electron-angular-boilerplate npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls electron-angular-boilerplate npm ERR! There is likely additional logging output above.

What can I do to fix it? Regards

ivanhdzd avatar Jul 13 '16 17:07 ivanhdzd

I've fixed this issue as follows. Probably not all the steps are mandatory, but this is the order I followed: I've updated npm to 3.10.7 and node to 6.6.0 I've edited the scripts/load_globals.sh to remove the "sudo" as we are on Windows I've executed it on git bash and it installed all the deps I've installed phyton 2.7 with the www.python.org .msi setting phyton as a global variable I've runned bower install I've runned the node-sass rebuild

Now comes the tricky part that I think was missing. As we are on windows, to execute things we don't have to use ./ and the npm start is saying:

./node_modules/bower/bin/bower install && ./node_modules/jspm/jspm.js install "." is not recognized as an internal or external command, operable program or batch file

So I do that commands without the dot:

node_modules/bower/bin/bower install (I had bower as a global, this did nothing, cause bower deps were installed on a previous step)

node_modules/jspm/jspm.js install And that installed some things.

After that, npm install stills crashing, but npm start launches the boilerplate

I think this boilerplate is a great idea, but maybe it should be more usable to Windows users, as the guide on the README is focused on UNIX systems.

Charly-T avatar Sep 21 '16 20:09 Charly-T

Let's get this tested on Mac before moving forward. Can you submit a PR @Carlos-T?

stephnr avatar Sep 29 '16 14:09 stephnr

Any updates @ivanhdzd, @Carlos-T ?

stephnr avatar Oct 07 '16 20:10 stephnr

I wasn't able to find a proper cross platform way of executing the scripts. Maybe set up deps in package json instead of a script... And maybe install jspm as global... But I don't really like it... Sorry.

Charly-T avatar Oct 08 '16 05:10 Charly-T

I would Also like this to have a dedicated build system for Windows,Linux & Mac.

GeorgeChackungal avatar Dec 08 '16 10:12 GeorgeChackungal