Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build报错 #2

Open
kooljazz opened this issue Nov 15, 2016 · 1 comment
Open

build报错 #2

kooljazz opened this issue Nov 15, 2016 · 1 comment

Comments

@kooljazz
Copy link

kooljazz commented Nov 15, 2016

$ npm run build 报错

ERROR in build.js from UglifyJs
SyntaxError: Unexpected token: operator (>) [build.js:8370,30]

npm ERR! Windows_NT 10.0.14393
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 v7.0.0
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build: cross-env NODE_ENV=production webpack --progress --hide-modules
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build script 'cross-env NODE_ENV=production webpack --progress --hide-modules'.
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 demo2 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cross-env NODE_ENV=production webpack --progress --hide-modules
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs demo2
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls demo2
npm ERR! There is likely additional logging output above.

@kooljazz kooljazz changed the title build build报错 Nov 15, 2016
@jamielhf
Copy link
Owner

这个因为没有.babelrc的原因,所以es6会没编译,build的时候压缩会解析不了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants