请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

These dependencies were not found

npm run build 后有如下报错,不知道怎么解决?请老师帮忙看下

These dependencies were not found:

  • core-js/modules/es.array.concat in ./node_modules/cube-ui/src/common/helpers/util.js, ./node_modules/cube-ui/src/common/helpers/debug.js and 4 others
  • core-js/modules/es.array.every in ./node_modules/cache-loader/dist/cjs.js??ref–12-0!./node_modules/babel-loader/lib??ref–16-1!./node_modules/cache-loader/dist/cjs.js??ref–0-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/cube-ui/src/components/scroll/scroll.vue?vue&type=script&lang=js&, ./node_modules/cache-loader/dist/cjs.js??ref–12-0!./node_modules/babel-loader/lib??ref–16-1!./node_modules/cache-loader/dist/cjs.js??ref–0-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/cube-ui/src/components/scroll-nav-bar/scroll-nav-bar.vue?vue&type=script&lang=js&
  • core-js/modules/es.array.fill in ./node_modules/cache-loader/dist/cjs.js??ref–12-0!./node_modules/babel-loader/lib??ref–16-1!./node_modules/cache-loader/dist/cjs.js??ref–0-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/cube-ui/src/components/bubble/bubble.vue?vue&type=script&lang=js&
  • core-js/modules/es.array.filter in ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js, ./node_modules/cache-loader/dist/cjs.js??ref–12-0!./node_modules/babel-loader/lib??ref–16-1!./node_modules/cache-loader/dist/cjs.js??ref–0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/order/order-select.vue?vue&type=script&lang=js& and 1 other
  • core-js/modules/es.array.find-index in ./node_modules/cube-ui/src/common/helpers/util.js, ./node_modules/cache-loader/dist/cjs.js??ref–12-0!./node_modules/babel-loader/lib??ref–16-1!./node_modules/cache-loader/dist/cjs.js??ref–0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/tab/tab.vue?vue&type=script&lang=js&
  • core-js/modules/es.array.for-each in ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js, ./node_modules/cube-ui/src/common/helpers/util.js and 11 others
  • core-js/modules/es.array.from in ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
  • core-js/modules/es.array.index-of in ./node_modules/cube-ui/src/common/helpers/env.js, ./node_modules/cube-ui/src/common/lang/date.js and 4 others
  • core-js/modules/es.array.iterator in ./node_modules/@babel/runtime/helpers/esm/typeof.js, ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
  • core-js/modules/es.array.join in ./node_modules/cube-ui/src/common/helpers/dom.js
  • core-js/modules/es.array.map in ./node_modules/cache-loader/dist/cjs.js??ref–12-0!./node_modules/babel-loader/lib??ref–16-1!./node_modules/cache-loader/dist/cjs.js??ref–0-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/cube-ui/src/components/scroll-nav/scroll-nav.vue?vue&type=script&lang=js&, ./node_modules/cache-loader/dist/cjs.js??ref–12-0!./node_modules/babel-loader/lib??ref–16-1!./node_modules/cache-loader/dist/cjs.js??ref–0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/address/Address.vue?vue&type=script&lang=js& and 1 other

正在回答 回答被采纳积分+3

1回答

ustbhuangyi 2020-04-29 10:17:28

没有安装 core-js 这个依赖?

0 回复 有任何疑惑可以回复我~
  • 提问者 慕尼黑4023828 #1
    这个不是安装node或者npm install 时自己安装的吗?
    还是需要在package.json中添加core.js的依赖
    回复 有任何疑惑可以回复我~ 2020-04-29 10:26:35
  • ustbhuangyi 回复 提问者 慕尼黑4023828 #2
    你的项目是怎么创建的,如果是基于 vue cli 3.x 以上版本创建的,core-js 会作为你的 dependencies 依赖
    回复 有任何疑惑可以回复我~ 2020-04-29 10:36:51
  • 提问者 慕尼黑4023828 回复 ustbhuangyi #3
    直接在git上面把源码拉下来,然后执行npm i, npm run build。所以构建方式应该和视频中一样,使用 vue-cli3.x
    回复 有任何疑惑可以回复我~ 2020-04-29 11:08:51
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信