old-examples
old-examples copied to clipboard
Error installing
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.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 ]
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.
Thank you for you answer. I will try with a Linux distribution
Same issue with me too. Please do something I want to run this on windows.
I can't i have no windows at home and at the work.
+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
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 ;-)
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.
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.
Also project has docker support, just use docker for build.