pro-mern-stack icon indicating copy to clipboard operation
pro-mern-stack copied to clipboard

can't run babel commands from npm

Open supercoder123 opened this issue 7 years ago • 2 comments

npm run compile gives the following error

[email protected] 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! [email protected] compile: `babel src –-presets react,es2015 –-out-dir static`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] 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

supercoder123 avatar May 18 '18 08:05 supercoder123

Have you install the bable , react..??

bilibilikanpei avatar May 21 '18 13:05 bilibilikanpei

yes i have

supercoder123 avatar May 22 '18 13:05 supercoder123