怎么没一个人报错的啊!!我心里苦啊! 我一直都是 npm WARN babel-loader@7.0.0 requires a peer of webpack@2 but none was installed. npm WARN html-webpack-plugin@2.28.0 requires a peer of webpack@1 || ^2 || ^2.1.0-beta || ^2.2.0-rc but none was installed. 页面中一直是: main.bundle.js:50 Uncaught SyntaxError: Unexpected token import
npm WARN babel-loader@7.0.0 requires a peer of webpack@2 but none is installed. You must install peer dependencies yourself.
npm WARN extract-text-webpack-plugin@1.0.1 requires a peer of webpack@^1.9.11 but none is installed. You must
install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
你用的是webpack@1吧?安装webpack直接就是webpack@2(现在可能是@3了),直接npm install webpack --save-dev