vasansr / pro-mern-stack

Code Listing for the book Pro MERN Stack
http://www.apress.com/in/book/9781484226520
343 stars 159 forks source link

can't run babel commands from npm #48

Open supercoder123 opened 6 years ago

supercoder123 commented 6 years ago

npm run compile gives the following error

 pro-mern-stack@1.1.1 compile C:\pro-mern-stack
   babel src –-presets react,es2015 –-out-dir static

 –-presets doesn't exist. react,es2015 doesn't exist. –-out-dir doesn't exist
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! pro-mern-stack@1.1.1 compile: `babel src –-presets react,es2015 –-out-dir static`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the pro-mern-stack@1.1.1 compile script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\gf\AppData\Roaming\npm-cache\_logs\2018-05-18T08_19_12_931Z-debug.log

please help

bilibilikanpei commented 6 years ago

Have you install the bable , react..??

supercoder123 commented 6 years ago

yes i have