运行npm run dev 编译一直卡住不动了
Closed this issue · 1 comments
运行npm run dev命令后,编译不能完成:
`> webpack -w
Webpack is watching the files…
Hash: 42fbfbd395046254044f
Version: webpack 2.7.0
Time: 3683ms
Asset Size Chunks Chunk Names
0.42fbfbd395046254044f.js 104 kB 0 [emitted]
1.42fbfbd395046254044f.js 16 kB 1 [emitted]
2.42fbfbd395046254044f.js 40.6 kB 2 [emitted]
3.42fbfbd395046254044f.js 5.43 kB 3 [emitted]
app.42fbfbd395046254044f.js 1.58 MB 4 [emitted] [big] app
vendor.42fbfbd395046254044f.js 1.96 MB 5 [emitted] [big] vendor
../../view/home/index_index.html 3.5 kB [emitted]
[4] .//_moment@2.19.0@moment/src/lib/utils/hooks.js 298 bytes {5} [built]/_moment@2.19.0@moment/src/lib/utils/is-date.js 137 bytes {5} [built]
[154] ./
[155] .//_vuex@2.4.1@vuex/dist/vuex.esm.js 25.1 kB {4} [built]/_moment@2.19.0@moment/src/lib/moment/calendar.js 1.06 kB {5} [built]
[167] ./
[168] .//_moment@2.19.0@moment/src/moment.js 2.42 kB {5} [built]/_vue@2.4.4@vue/dist/vue.runtime.esm.js 199 kB {4} [built]
[169] ./
[212] .//_axios@0.16.2@axios/index.js 40 bytes {4} [built]/_moment@2.19.0@moment/src/lib/duration/duration.js 340 bytes {5} [built]
[213] ./front/lib/api.js 504 bytes {4} [built]
[214] ./front/router.js 1.05 kB {4} [built]
[215] ./front/store/index.js 884 bytes {4} [built]
[216] ./
[217] .//_moment@2.19.0@moment/src/lib/locale/locale.js 806 bytes {5} [built]/_moment@2.19.0@moment/src/lib/moment/moment.js 610 bytes {5} [built]
[218] ./
[219] ./~/_moment@2.19.0@moment/src/lib/units/units.js 404 bytes {5} [built]
[260] ./front/app.js 1.87 kB {4} [built]
+ 353 hidden modules
WARNING in .//_moment@2.19.0@moment/src/lib/locale/locales.js/_moment@2.19.0@moment/src/lib/locale/locales.js 65:16-60
Module not found: Error: Can't resolve './locale' in '/Users/shengqiang/Documents/Codes/SAHX-Admin-master/node_modules/_moment@2.19.0@moment/src/lib/locale'
@ ./
@ .//_moment@2.19.0@moment/src/lib/locale/locale.js/_moment@2.19.0@moment/src/moment.js
@ ./
Child html-webpack-plugin for "../../view/home/index_index.html":
[0] .//_lodash@4.17.4@lodash/lodash.js 540 kB {0} [built]/_html-webpack-plugin@2.30.1@html-webpack-plugin/lib/loader.js!./view/home/webpack_template.html 3.79 kB {0} [built]
[1] ./
[2] (webpack)/buildin/global.js 509 bytes {0} [built]
[3] (webpack)/buildin/module.js 517 bytes {0} [built]`
很抱歉,是我疏忽了,npm run dev
是文件监听模式,为了方便开发使用。您这个是编译成功了的,只是一直在等待文件变动,而进行实时编译。您使用 npm run build
这个指令进行编译,完成后再执行 npm start
。