Open cgfeel opened 6 years ago
npm run init > iview-project@3.0.0 init /Library/WebServer/Documents/ment/iview/iview-project > webpack --progress --config webpack.dev.config.js 11% building modules 12/18 modules 6 active .../ment/iview/iview-project/src/app.vueContainer#eachAtRule is deprecated. Use Container#walkAtRules instead. Container#eachRule is deprecated. Use Container#walkRules instead. Container#eachDecl is deprecated. Use Container#walkDecls instead. 11% building modules 16/21 modules 5 active ...iew/iview-project/src/images/logo.pngRoot#remove is deprecated. Use Root#removeChild Node#style() is deprecated. Use Node#raw() Container#remove is deprecated. Use Container#removeChild Node#_value was deprecated. Use Node#raws.value 12% building modules 21/22 modules 1 active ...ject/node_modules/iview/dist/iview.js[BABEL] Note: The code generator has deoptimised the styling of "/Library/WebServer/Documents/ment/iview/iview-project/node_modules/iview/dist/iview.js" as it exceeds the max of "500KB". Hash: cd33a3f64a24f57ded5a Version: webpack 2.7.0 Time: 20340ms Asset Size Chunks Chunk Names ../index.html 2.5 kB [emitted] 0.chunk.js 3.25 kB 0 [emitted] main.js 8.1 kB 1 [emitted] main vendors.js 1.64 MB 2 [emitted] [big] vendors main.css 366 bytes 1 [emitted] main 0.chunk.js.map 5.91 kB 0 [emitted] main.js.map 8.15 kB 1 [emitted] main main.css.map 85 bytes 1 [emitted] main vendors.js.map 3.81 MB 2 [emitted] vendors [0] ./~/vue/dist/vue.esm.js 287 kB {2} [built] [1] ./~/iview/dist/iview.js 1.26 MB {2} [built] [2] ./~/vue-router/dist/vue-router.esm.js 65.5 kB {2} [built] [3] ./~/process/browser.js 5.43 kB {2} [built] [5] ./src/libs/util.js 163 bytes {1} [built] [6] ./src/router.js 203 bytes {1} [built] [7] ./~/iview/dist/styles/iview.css 1.32 kB {1} [built] [failed] [1 error] [8] ./src/app.vue 1.83 kB {1} [built] [9] ./~/vue-loader/lib/component-normalizer.js 1.27 kB {1} [built] [10] ./src/main.js 714 bytes {1} [built] [11] ./src/vendors.js 85 bytes {2} [built] [13] ./~/timers-browserify/main.js 1.89 kB {2} [built] [14] ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./~/iview-loader?{"prefix":false}!./src/app.vue 199 bytes {1} [built] [16] ./~/extract-text-webpack-plugin/loader.js?{"omit":1,"remove":true}!./~/vue-style-loader!./~/css-loader!./~/vue-loader/lib/style-compiler?{"id":"data-v-500777ba","scoped":true,"hasInlineConfig":false}!./~/autoprefixer-loader!./~/less-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./~/iview-loader?{"prefix":false}!./src/app.vue 41 bytes {1} [built] [18] ./src/views/index.vue 1.89 kB {0} [built] + 8 hidden modules ERROR in Error: Child compilation failed: Module build failed: SyntaxError: Unexpected token (1:0) > 1 | <!DOCTYPE html> | ^ 2 | <html lang="zh-CN"> 3 | 4 | <head> : BabelLoaderError: SyntaxError: Unexpected token (1:0) > 1 | <!DOCTYPE html> | ^ 2 | <html lang="zh-CN"> 3 | 4 | <head> - compiler.js:76 [iview-project]/[html-webpack-plugin]/lib/compiler.js:76:16 - Compiler.js:296 Compiler.<anonymous> [iview-project]/[webpack]/lib/Compiler.js:296:10 - Compiler.js:499 [iview-project]/[webpack]/lib/Compiler.js:499:13 - Tapable.js:202 next [iview-project]/[tapable]/lib/Tapable.js:202:11 - CachePlugin.js:62 Compiler.<anonymous> [iview-project]/[webpack]/lib/CachePlugin.js:62:5 - Tapable.js:206 Compiler.applyPluginsAsyncSeries [iview-project]/[tapable]/lib/Tapable.js:206:13 - Compiler.js:496 [iview-project]/[webpack]/lib/Compiler.js:496:10 - Tapable.js:195 Compilation.applyPluginsAsyncSeries [iview-project]/[tapable]/lib/Tapable.js:195:46 - Compilation.js:649 self.applyPluginsAsync.err [iview-project]/[webpack]/lib/Compilation.js:649:19 - Tapable.js:195 Compilation.applyPluginsAsyncSeries [iview-project]/[tapable]/lib/Tapable.js:195:46 - Compilation.js:640 self.applyPluginsAsync.err [iview-project]/[webpack]/lib/Compilation.js:640:11 - Tapable.js:195 Compilation.applyPluginsAsyncSeries [iview-project]/[tapable]/lib/Tapable.js:195:46 - Compilation.js:635 self.applyPluginsAsync.err [iview-project]/[webpack]/lib/Compilation.js:635:10 - Tapable.js:195 Compilation.applyPluginsAsyncSeries [iview-project]/[tapable]/lib/Tapable.js:195:46 - Compilation.js:631 sealPart2 [iview-project]/[webpack]/lib/Compilation.js:631:9 - Tapable.js:195 Compilation.applyPluginsAsyncSeries [iview-project]/[tapable]/lib/Tapable.js:195:46 - Compilation.js:579 Compilation.seal [iview-project]/[webpack]/lib/Compilation.js:579:8 - Compiler.js:493 [iview-project]/[webpack]/lib/Compiler.js:493:16 - Tapable.js:289 [iview-project]/[tapable]/lib/Tapable.js:289:11 - Compilation.js:481 _addModuleChain [iview-project]/[webpack]/lib/Compilation.js:481:11 - Compilation.js:452 processModuleDependencies.err [iview-project]/[webpack]/lib/Compilation.js:452:13 - next_tick.js:61 process._tickCallback internal/process/next_tick.js:61:11 ERROR in ./src/images/logo.png Module build failed: TypeError: Cannot read property 'context' of undefined at Object.module.exports (/Library/WebServer/Documents/ment/iview/iview-project/node_modules/file-loader/index.js:12:42) at Object.loader (/Library/WebServer/Documents/ment/iview/iview-project/node_modules/url-loader/dist/index.js:76:19) @ ./~/vue-loader/lib/template-compiler?{"id":"data-v-78d3d5f3"}!./~/vue-loader/lib/selector.js?type=template&index=0!./~/iview-loader?{"prefix":false}!./src/views/index.vue 16:13-42 @ ./src/views/index.vue @ ./src/router.js @ ./src/main.js ERROR in ./~/iview/dist/styles/iview.css Module build failed: ModuleBuildError: Module build failed: TypeError: Cannot read property 'context' of undefined at Object.module.exports (/Library/WebServer/Documents/ment/iview/iview-project/node_modules/file-loader/index.js:12:42) at Object.loader (/Library/WebServer/Documents/ment/iview/iview-project/node_modules/url-loader/dist/index.js:76:19) at runLoaders (/Library/WebServer/Documents/ment/iview/iview-project/node_modules/webpack/lib/NormalModule.js:192:19) at /Library/WebServer/Documents/ment/iview/iview-project/node_modules/loader-runner/lib/LoaderRunner.js:364:11 at /Library/WebServer/Documents/ment/iview/iview-project/node_modules/loader-runner/lib/LoaderRunner.js:230:18 at runSyncOrAsync (/Library/WebServer/Documents/ment/iview/iview-project/node_modules/loader-runner/lib/LoaderRunner.js:143:3) at iterateNormalLoaders (/Library/WebServer/Documents/ment/iview/iview-project/node_modules/loader-runner/lib/LoaderRunner.js:229:2) at Array.<anonymous> (/Library/WebServer/Documents/ment/iview/iview-project/node_modules/loader-runner/lib/LoaderRunner.js:202:4) at Storage.finished (/Library/WebServer/Documents/ment/iview/iview-project/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:40:15) at /Library/WebServer/Documents/ment/iview/iview-project/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:77:9 at /Library/WebServer/Documents/ment/iview/iview-project/node_modules/graceful-fs/graceful-fs.js:78:16 at FSReqWrap.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:53:3) @ ./src/main.js 7:0-37 ERROR in ./~/iview/dist/styles/iview.css Module build failed: ModuleBuildError: Module build failed: TypeError: Cannot read property 'context' of undefined at Object.module.exports (/Library/WebServer/Documents/ment/iview/iview-project/node_modules/file-loader/index.js:12:42) at Object.loader (/Library/WebServer/Documents/ment/iview/iview-project/node_modules/url-loader/dist/index.js:76:19) at runLoaders (/Library/WebServer/Documents/ment/iview/iview-project/node_modules/webpack/lib/NormalModule.js:192:19) at /Library/WebServer/Documents/ment/iview/iview-project/node_modules/loader-runner/lib/LoaderRunner.js:364:11 at /Library/WebServer/Documents/ment/iview/iview-project/node_modules/loader-runner/lib/LoaderRunner.js:230:18 at runSyncOrAsync (/Library/WebServer/Documents/ment/iview/iview-project/node_modules/loader-runner/lib/LoaderRunner.js:143:3) at iterateNormalLoaders (/Library/WebServer/Documents/ment/iview/iview-project/node_modules/loader-runner/lib/LoaderRunner.js:229:2) at /Library/WebServer/Documents/ment/iview/iview-project/node_modules/loader-runner/lib/LoaderRunner.js:202:4 at /Library/WebServer/Documents/ment/iview/iview-project/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:70:14 at process._tickCallback (internal/process/next_tick.js:61:11) Child html-webpack-plugin for "../index.html": [0] ./~/html-webpack-plugin/lib/loader.js!./src/template/index.ejs 599 bytes {0} [built] [failed] [1 error] ERROR in ./~/html-webpack-plugin/lib/loader.js!./src/template/index.ejs Module build failed: SyntaxError: Unexpected token (1:0) > 1 | <!DOCTYPE html> | ^ 2 | <html lang="zh-CN"> 3 | 4 | <head> Child extract-text-webpack-plugin: [0] ./~/css-loader/lib/css-base.js 1.46 kB {0} [built] [1] ./~/css-loader?minimize!./~/vue-loader/lib/style-compiler?{"id":"data-v-78d3d5f3","scoped":true,"hasInlineConfig":false}!./~/autoprefixer-loader!./~/less-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./~/iview-loader?{"prefix":false}!./src/views/index.vue 486 bytes {0} [built] Child extract-text-webpack-plugin: [0] ./~/css-loader/lib/css-base.js 1.46 kB {0} [built] [1] ./~/css-loader!./src/styles/common.css 157 bytes {0} [built] [2] ./~/css-loader!./~/vue-loader/lib/style-compiler?{"id":"data-v-500777ba","scoped":true,"hasInlineConfig":false}!./~/autoprefixer-loader!./~/less-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./~/iview-loader?{"prefix":false}!./src/app.vue 240 bytes {0} [built] Child extract-text-webpack-plugin: [0] ./~/css-loader/lib/css-base.js 1.46 kB {0} [built] [1] ./~/iview/dist/styles/fonts/ionicons.svg?v=3.0.0 343 bytes {0} [built] [failed] [1 error] [2] ./~/iview/dist/styles/fonts/ionicons.ttf?v=3.0.0 343 bytes {0} [built] [failed] [1 error] [3] ./~/iview/dist/styles/fonts/ionicons.woff?v=3.0.0 343 bytes {0} [built] [failed] [1 error] [4] ./~/css-loader?minimize!./~/autoprefixer-loader!./~/iview/dist/styles/iview.css 255 kB {0} [built] ERROR in ./~/iview/dist/styles/fonts/ionicons.woff?v=3.0.0 Module build failed: TypeError: Cannot read property 'context' of undefined at Object.module.exports (/Library/WebServer/Documents/ment/iview/iview-project/node_modules/file-loader/index.js:12:42) at Object.loader (/Library/WebServer/Documents/ment/iview/iview-project/node_modules/url-loader/dist/index.js:76:19) @ ./~/css-loader?minimize!./~/autoprefixer-loader!./~/iview/dist/styles/iview.css 6:4453-4493 ERROR in ./~/iview/dist/styles/fonts/ionicons.ttf?v=3.0.0 Module build failed: TypeError: Cannot read property 'context' of undefined at Object.module.exports (/Library/WebServer/Documents/ment/iview/iview-project/node_modules/file-loader/index.js:12:42) at Object.loader (/Library/WebServer/Documents/ment/iview/iview-project/node_modules/url-loader/dist/index.js:76:19) @ ./~/css-loader?minimize!./~/autoprefixer-loader!./~/iview/dist/styles/iview.css 6:4379-4418 ERROR in ./~/iview/dist/styles/fonts/ionicons.svg?v=3.0.0 Module build failed: TypeError: Cannot read property 'context' of undefined at Object.module.exports (/Library/WebServer/Documents/ment/iview/iview-project/node_modules/file-loader/index.js:12:42) at Object.loader (/Library/WebServer/Documents/ment/iview/iview-project/node_modules/url-loader/dist/index.js:76:19) @ ./~/css-loader?minimize!./~/autoprefixer-loader!./~/iview/dist/styles/iview.css 6:4524-4563 Child extract-text-webpack-plugin: [0] ./~/css-loader/lib/css-base.js 1.46 kB {0} [built] [1] ./~/iview/dist/styles/fonts/ionicons.svg?v=3.0.0 343 bytes {0} [built] [failed] [1 error] [2] ./~/iview/dist/styles/fonts/ionicons.ttf?v=3.0.0 343 bytes {0} [built] [failed] [1 error] [3] ./~/iview/dist/styles/fonts/ionicons.woff?v=3.0.0 343 bytes {0} [built] [failed] [1 error] [4] ./~/css-loader?minimize!./~/autoprefixer-loader!./~/iview/dist/styles/iview.css 255 kB {0} [built] ERROR in ./~/iview/dist/styles/fonts/ionicons.ttf?v=3.0.0 Module build failed: TypeError: Cannot read property 'context' of undefined at Object.module.exports (/Library/WebServer/Documents/ment/iview/iview-project/node_modules/file-loader/index.js:12:42) at Object.loader (/Library/WebServer/Documents/ment/iview/iview-project/node_modules/url-loader/dist/index.js:76:19) @ ./~/css-loader?minimize!./~/autoprefixer-loader!./~/iview/dist/styles/iview.css 6:4379-4418 ERROR in ./~/iview/dist/styles/fonts/ionicons.woff?v=3.0.0 Module build failed: TypeError: Cannot read property 'context' of undefined at Object.module.exports (/Library/WebServer/Documents/ment/iview/iview-project/node_modules/file-loader/index.js:12:42) at Object.loader (/Library/WebServer/Documents/ment/iview/iview-project/node_modules/url-loader/dist/index.js:76:19) @ ./~/css-loader?minimize!./~/autoprefixer-loader!./~/iview/dist/styles/iview.css 6:4453-4493 ERROR in ./~/iview/dist/styles/fonts/ionicons.svg?v=3.0.0 Module build failed: TypeError: Cannot read property 'context' of undefined at Object.module.exports (/Library/WebServer/Documents/ment/iview/iview-project/node_modules/file-loader/index.js:12:42) at Object.loader (/Library/WebServer/Documents/ment/iview/iview-project/node_modules/url-loader/dist/index.js:76:19) @ ./~/css-loader?minimize!./~/autoprefixer-loader!./~/iview/dist/styles/iview.css 6:4524-4563 npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! iview-project@3.0.0 init: `webpack --progress --config webpack.dev.config.js` npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the iview-project@3.0.0 init 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! /Users/liwei/.npm/_logs/2018-08-16T10_07_35_760Z-debug.log