vue 打包出错,npm run build

only_darker
  • 45

clipboard.png
"scoped":true,"hasInlineConfig":false}!./node_modules/vue-loader/lib/selector.js?type=styl
es&index=0!./src/components/Manage/Classroom/Classroom.vue
Order in extracted chunk undefined

Build failed with errors.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! tuition-cloud@1.0.0 build: node build/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the tuition-cloud@1.0.0 build 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:UsersshaunAppDataRoamingnpm-cache_logs2018-04-27T02_02_20_784Z-debug.log

请问如何解决

回复
阅读 3.9k
3 个回答
vue小学生
  • 2
新手上路,请多包涵

缺少依赖 先npm install 然后再进行编译

node版本过低?或者依赖库的问题,升级一下node,然后运行一下npm install

你知道吗?

宣传栏