前端工程启动报错收集记录
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
相关文章
- Webservice WCF WebApi 前端数据可视化 前端数据可视化 C# asp.net PhoneGap html5 C# Where 网站分布式开发简介 EntityFramework Core依赖注入上下文方式不同造成内存泄漏了解一下? SQL Server之深入理解STUFF 你必须知道的EntityFramework 6.x和EntityFramework Cor
- 和前端吵架的一天
- 前端三剑客常见面试题及其答案
- 前端面试题
- 《Web前端工程师修炼之道(原书第4版)》——眼花缭乱的设备
- 2023跨年烟花(浪漫烟花+美妙音乐+雪花飘飘)含前端源码直接下载---系列最终篇
- 前端性能优化之管理后台列表功能操作
- 闲聊_前端大牛得到的最佳职业生涯建议
- 谷粒学院——Day05【后台系统前端项目创建、讲师管理模块前端开发】
- 【web前端(三十二)】javascript_外部js脚本文件
- UI前端常用的15个超赞的配色网站
- element 前端排序 与 后端排序