wangzuo / react-medium-editor

React wrapper for medium-editor
https://wangzuo.github.io/react-medium-editor
MIT License
504 stars 93 forks source link

Unable to build fork #17

Closed oyeanuj closed 8 years ago

oyeanuj commented 8 years ago

Hi @wangzuo! I was trying to build my local fork to test some PRs but was getting the following errors -

➜  react-medium-editor git:(master) ✗ npm run build                      

> react-medium-editor@1.6.2 build /Users/anuj/Github/react-medium-editor
> make

babel lib --out-dir dist
make: babel: No such file or directory
make: *** [all] Error 1

npm ERR! Darwin 15.3.0
npm ERR! argv "/usr/local/Cellar/node/5.1.0/bin/node" "/usr/local/bin/npm" "run" "build"
npm ERR! node v5.1.0
npm ERR! npm  v3.3.12
npm ERR! code ELIFECYCLE
npm ERR! react-medium-editor@1.6.2 build: `make`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the react-medium-editor@1.6.2 build script 'make'.
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 react-medium-editor package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     make
npm ERR! You can get their info via:
npm ERR!     npm owner ls react-medium-editor
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/anuj/Github/react-medium-editor/npm-debug.log
➜  react-medium-editor git:(master) ✗

Any pointers on how to fix this?

Thank you!

wangzuo commented 8 years ago

babel-cli is required to compile js files. Will add a local dependence for it.