首页 > 其他 > 详细

前端工程启动报错收集记录

时间:2021-08-18 15:44:40      阅读:16      评论:0      收藏:0      [点我收藏+]

D:\automation\ApiTestWeb-master>yarn install
yarn install v1.22.11
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resoluti
on inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.4: The platform "win32" is incompatible with this module.
info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.9: The platform "win32" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "@vue/cli > @vue/cli-ui > graphql-tag@2.10.0" has unmet peer dependency "graphql@^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0".
warning "@vue/cli > @vue/cli-ui > graphql-type-json@0.2.1" has unmet peer dependency "graphql@>=0.8.0".
warning "@vue/cli > @vue/cli-ui > vue-cli-plugin-apollo > apollo-server-express > apollo-server-core > apollo-tracing@0.4.0" has incorrect peer dependency "graphql@0.10.x
- 14.0.x".
warning "v-charts > echarts-liquidfill@2.0.4" has unmet peer dependency "zrender@^4.0.4".
warning "@vue/cli-plugin-babel > @vue/babel-preset-app > @vue/babel-preset-jsx@1.0.0-beta.1" has unmet peer dependency "@vue/babel-helper-vue-jsx-merge-props@^0.1.0".
warning "@vue/cli-plugin-babel > @vue/babel-preset-app > @vue/babel-preset-jsx > @vue/babel-plugin-transform-vue-jsx@1.0.0-beta.1" has incorrect peer dependency "@vue/bab
el-helper-vue-jsx-merge-props@^0.1.0".
[4/4] Building fresh packages...
[6/6] ? phantomjs-prebuilt
[2/6] ? nodemon
[3/6] ? node-sass
[-/6] ? waiting...
error D:\automation\ApiTestWeb-master\node_modules\node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: D:\automation\ApiTestWeb-master\node_modules\node-sass
Output:
Building: C:\Prog

 

解决:不能用yarn install,要用:npm install  

因为里面设定了安装方式,有package.json.lock文件,如果用yarn install就要把 lock这个文件删除了

D:\automation\ApiTestWeb-master>yarn build
yarn run v1.22.11
$ vue-cli-service build

- Building for production...

ERROR Failed to compile with 1 error 14:24:25

This dependency was not found:

* vue-runtime-helpers in ./node_modules/v-contextmenu/dist/index.esm.js

To install it, you can run: npm install --save vue-runtime-helpers
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.

 

阅读报错,发现少了少了这个:npm install --save vue-runtime-helpers  直接执行:npm install --save vue-runtime-helpers  手动安装一下,然后再build

前端工程启动报错收集记录

原文:https://www.cnblogs.com/insane-Mr-Li/p/15156715.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!