souporserious / react-media-player

React audio and video player.
https://souporserious.github.io/react-media-player/
ISC License
470 stars 100 forks source link

npm install fails on windows #12

Open jhogins opened 8 years ago

jhogins commented 8 years ago

When running npm install on windows I get the following error:

react-media-player@0.5.0 prebuild D:\srchome\github\react-media-player rm -rf dist && mkdir dist

'rm' is not recognized as an internal or external command, operable program or batch file.

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" "run" "build"

npm ERR! node v4.4.5 npm ERR! npm v2.15.5 npm ERR! code ELIFECYCLE npm ERR! react-media-player@0.5.0 prebuild: rm -rf dist && mkdir dist npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the react-media-player@0.5.0 prebuild script 'rm -rf dist && mkdir dist'. npm ERR! This is most likely a problem with the react-media-player package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! rm -rf dist && mkdir dist npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs react-media-player npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm ERR! npm owner ls react-media-player npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! D:\srchome\github\react-media-player\npm-debug.log

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" "instal" npm ERR! node v4.4.5 npm ERR! npm v2.15.5 npm ERR! code ELIFECYCLE npm ERR! react-media-player@0.5.0 prepublish: npm run build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the react-media-player@0.5.0 prepublish script 'npm run build'. npm ERR! This is most likely a problem with the react-media-player package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! npm run build npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs react-media-player npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm ERR! npm owner ls react-media-player npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! D:\srchome\github\react-media-player\npm-debug.log

npm-debug.log.txt

souporserious commented 8 years ago

Thanks for the report. It looks like it may be due to the Mac terminal commands I'm using. I'm not familiar with Windows and don't have access to one right now so it may take a little bit to fix this. Please feel free to create a PR if you are able to fix it.

Eason-Wu commented 7 years ago

we are facing the same error ...