zoukankan      html  css  js  c++  java
  • 前端工程启动报错收集记录

    D:automationApiTestWeb-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:automationApiTestWeb-master ode_modules ode-sass: Command failed.
    Exit code: 1
    Command: node scripts/build.js
    Arguments:
    Directory: D:automationApiTestWeb-master ode_modules ode-sass
    Output:
    Building: C:Prog

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

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

    D:automationApiTestWeb-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

    每天一点点,感受自己存在的意义。
  • 相关阅读:
    word删除脚注的方法
    移动最小二乘
    word插入的对象和文字混合到了一起的解决办法
    插值
    中学小学学校学生德育量化管理系统_文明班评比量化系统_德育评价系统_德育量化考核系统_政教管理系统_政教考核系统
    需求的最初形式:12306ng的需求小说
    异步javascript的原理和实现
    需求与设计过程(1)用例
    项目管理沙龙第十二次会议纪要为没有共识的项目组定制敏捷方法
    项目进度控制的技术
  • 原文地址:https://www.cnblogs.com/insane-Mr-Li/p/15156715.html
Copyright © 2011-2022 走看看