old-examples icon indicating copy to clipboard operation
old-examples copied to clipboard

Error installing

Open miguelsff opened this issue 9 years ago • 9 comments

Hi. Thank you for you code. I'm trying deploy this project in my local pc but i have errors. Can help me please?

0 info it worked if it ends with ok 1 verbose cli [ 'C:\Program Files\nodejs\node.exe', 1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js', 1 verbose cli 'run', 1 verbose cli 'hot-dev-server' ] 2 info using [email protected] 3 info using [email protected] 4 verbose run-script [ 'prehot-dev-server', 'hot-dev-server', 'posthot-dev-server' ] 5 info prehot-dev-server [email protected] 6 info hot-dev-server [email protected] 7 verbose unsafe-perm in lifecycle true 8 info [email protected] Failed to exec hot-dev-server script 9 verbose stack Error: [email protected] hot-dev-server: npm run clean;webpack-dev-server --config webpack-hot-dev-server.config.js --hot --progress 9 verbose stack Exit status 1 9 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:213:16) 9 verbose stack at EventEmitter.emit (events.js:110:17) 9 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:24:14) 9 verbose stack at ChildProcess.emit (events.js:110:17) 9 verbose stack at maybeClose (child_process.js:1015:16) 9 verbose stack at Process.ChildProcess._handle.onexit (child_process.js:1087:5) 10 verbose pkgid [email protected] 11 verbose cwd D:\WORKSPACES\nodeJS\google-map-react-examples 12 error Windows_NT 6.1.7601 13 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "hot-dev-server" 14 error node v0.12.4 15 error npm v2.10.1 16 error code ELIFECYCLE 17 error [email protected] hot-dev-server: npm run clean;webpack-dev-server --config webpack-hot-dev-server.config.js --hot --progress 17 error Exit status 1 18 error Failed at the [email protected] hot-dev-server script 'npm run clean;webpack-dev-server --config webpack-hot-dev-server.config.js --hot --progress'. 18 error This is most likely a problem with the google-map-react-examples package, 18 error not with npm itself. 18 error Tell the author that this fails on your system: 18 error npm run clean;webpack-dev-server --config webpack-hot-dev-server.config.js --hot --progress 18 error You can get their info via: 18 error npm owner ls google-map-react-examples 18 error There is likely additional logging output above. 19 verbose exit [ 1, true ]

miguelsff avatar Jun 23 '15 17:06 miguelsff

I think it because of I use bash commands to run and clean build like rm -f ./build/stats.json;ls -d -1 ./build/public/* | xargs rm -rf;ls -d -1 ./build/prerender/* | xargs rm -rf;cp -r ./web/assets ./build/public/assets" And it looks like this commands doesn't work on windows at all. I have no windows distribution and need help or time to read how to prepare npm scripts for windows.

istarkov avatar Jun 23 '15 22:06 istarkov

Thank you for you answer. I will try with a Linux distribution

miguelsff avatar Jun 23 '15 23:06 miguelsff

Same issue with me too. Please do something I want to run this on windows.

sushant-kumar17 avatar Jul 11 '15 08:07 sushant-kumar17

I can't i have no windows at home and at the work.

istarkov avatar Jul 11 '15 09:07 istarkov

+1, have exactly the same issue on Windows when running npm run hot-dev-server. In addition, I got some errors on the npm install:

> node scripts/build.js

module.js:341
    throw err;
    ^

Error: Cannot find module 'C:\Users\eric\workspace\testing\google-map-react-examples\node_modules\sass-loader\node_modules\node-sass\node_modules\pangyp\bin\node-gyp'
    at Function.Module._resolveFilename (module.js:339:15)
    at Function.Module._load (module.js:290:25)
    at Function.Module.runMain (module.js:447:10)
    at startup (node.js:140:18)
    at node.js:1001:3
 Build failed

ericgrosse avatar Mar 15 '16 20:03 ericgrosse

I will not do any change to support windows for this project, as I wrote above I have no Windows distribution so I can't test or run code on Windows. I think that Windows is not intended for web development (and for any other development) at all. I will accept PR which will convert bash code above in some kind of cross compatible script. I highly recommend to all of you to move out from windows ;-)

istarkov avatar Mar 15 '16 20:03 istarkov

Well then at the very least you should update your documentation to make it clear that a non-docker installation doesn't work on Windows. Almost 90% of PCs run Windows, so you're alienating the majority of your potential audience of this library by not supporting it.

ericgrosse avatar Mar 15 '16 20:03 ericgrosse

100% developers I know, does not use windows. For a lot of months this project alive, you are just 3rd who has the problems with installation. As I said I will not do any change even in documentation to make windows developers life easier ;-)

If any windows user is really need to build this project it's not big problem to transform bash code.

istarkov avatar Mar 15 '16 20:03 istarkov

Also project has docker support, just use docker for build.

istarkov avatar Mar 15 '16 21:03 istarkov