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

Error installing #2

Open
miguelsff opened this issue Jun 23, 2015 · 9 comments
Open

Error installing #2

miguelsff opened this issue Jun 23, 2015 · 9 comments

Comments

@miguelsff
Copy link

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 npm@2.10.1
3 info using node@v0.12.4
4 verbose run-script [ 'prehot-dev-server', 'hot-dev-server', 'posthot-dev-server' ]
5 info prehot-dev-server google-map-react-examples@0.3.0
6 info hot-dev-server google-map-react-examples@0.3.0
7 verbose unsafe-perm in lifecycle true
8 info google-map-react-examples@0.3.0 Failed to exec hot-dev-server script
9 verbose stack Error: google-map-react-examples@0.3.0 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 google-map-react-examples@0.3.0
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 google-map-react-examples@0.3.0 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 google-map-react-examples@0.3.0 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 ]

@istarkov
Copy link
Collaborator

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.

@miguelsff
Copy link
Author

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

@sushant-kumar17
Copy link

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

@istarkov
Copy link
Collaborator

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

@ericgrosse
Copy link

+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

@istarkov
Copy link
Collaborator

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 ;-)

@ericgrosse
Copy link

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.

@istarkov
Copy link
Collaborator

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
Copy link
Collaborator

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

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

4 participants