vue npm run dev 提示To install them, you can run: npm install --save @/url

ERROR Failed to compile with 2 errors
These dependencies were not found:
* @/api/system/tb_channel_config in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/s
ystem/tb_authen_log/index.vue?vue&type=script&lang=js&
* @/api/system/tb_game in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/system/tb_a
uthen_log/index.vue?vue&type=script&lang=js&
To install them, you can run: npm install --save @/api/system/tb_channel_config @/api/system/tb_game

To install them.. 这样的错误原因有很多,仅对本项目来说,从最后一行能看出来,是自己项目对应目录下缺少js文件:

放入对应的文件即可:

warning package.json: "dependencies" has dependency "pdfjs-dist" with range "2.12.313" that collides with a dependency in "devDependencies" of the same name with version "4.2.67" $ cross-env PACKAGE_DIR=liveapp NODE_ENV=production VUE_APP_BUILD_TARGET=dev lerna run build lerna notice cli v7.4.2 lerna info versioning independent > insight-card:build warning ..\..\..\package.json: "dependencies" has dependency "pdfjs-dist" with range "2.12.313" that collides with a dependency in "devDependencies" of the same name with version "4.2.67" $ vue-cli-service build Browserslist: caniuse-lite is outdated. Please run: npx update-browserslist-db@latest Why you should do it regularly: https://github.com/browserslist/update-db#readme - Building for production... ERROR Failed to compile with 3 errors17:01:19 These dependencies were not found: * @/server/event in D:/CodeHub/dev_jck/eureka.ThinkTankInsight.web/node_modules/cache-loader/dist/cjs.js??ref--13-0!D:/CodeHub/dev_jck/eureka.ThinkTankInsight.web/node_modules/thread-loader/dist/cjs.js!D:/CodeHub/dev_jck/eureka.ThinkTankInsight.web/node_modules/babel-loader/lib!D:/CodeHub/dev_jck/eureka.ThinkTankInsight.web/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/CodeHub/dev_jck/eureka.ThinkTankInsight.web/node_modules/vue-loader-v16/dist??ref--1-1!D:/CodeHub/dev_jck/eureka.ThinkTankInsight.web/src/pages/eventVein/components/TimelineView.vue?vue&type=script&setup=true&lang=js * @/server/homePage in D:/CodeHub/dev_jck/eureka.ThinkTankInsight.web/node_modules/cache-loader/dist/cjs.js??ref--13-0!D:/CodeHub/dev_jck/eureka.ThinkTankInsight.web/node_modules/thread-loader/dist/cjs.js!D:/CodeHub/dev_jck/eureka.ThinkTankInsight.web/node_modules/babel-loader/lib!D:/CodeHub/dev_jck/eureka.ThinkTankInsight.web/node_modules/cache-loader/dist/cjs.js??ref--1-0!D:/CodeHub/dev_jck/eureka.ThinkTankInsight.web/node_modules/vue-loader-v16/dist??ref--1-1!./entry.vue?vue&type=script&lang=js /dist/cjs.js??ref--1-0!D:/CodeHub/dev_jck/eureka.ThinkTankInsight.web/node_modules/vue-loader-v16/dist??ref--1-1!./entry.vue?vue&type=script&lang=js * @/store in D:/CodeHub/dev_jck/eureka.ThinkTankInsight.web/src/components/HeaderBar/useAssembleQuery.js To install them, you can run: npm install --save @/server/event @/server/homePage @/store ERROR Build failed with errors. error Command failed with exit code 1. /dist/cjs.js??ref--1-0!D:/CodeHub/dev_jck/eureka.ThinkTankInsight.web/node_modules/vue-loader-v16/dist??ref--1-1!./entry.vue?vue&type=script&lang=js * @/store in D:/CodeHub/dev_jck/eureka.ThinkTankInsight.web/src/components/HeaderBar/useAssembleQuery.js To install them, you can run: npm install --save @/server/event @/server/homePage @/store ERROR Build failed with errors. /dist/cjs.js??ref--1-0!D:/CodeHub/dev_jck/eureka.ThinkTankInsight.web/node_modules/vue-loader-v16/dist??ref--1-1!./entry.vue?vue&type=script&lang=js * @/store in D:/CodeHub/dev_jck/eureka.ThinkTankInsight.web/src/components/HeaderBar/useAssembleQuery.js To install them, you can run: npm install --save @/server/event @/server/homePage @/store ERROR Build failed with errors. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
11-04
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值