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

    每天一点点,感受自己存在的意义。
  • 相关阅读:
    实用JS代码
    javascript-table出现滚动条表格自动对齐
    Javascript-关于for in和forEach
    Javascript-关于break、continue、return语句
    如何编写可怕的Java代码?
    请停止编写这么多的for循环!
    如何优雅地在Stack Overflow提问?
    为什么阿里巴巴Java开发手册中强制要求不要在foreach循环里进行元素的remove和add操作?
    Java异常处理只有Try-Catch吗?
    看完这篇还不会用Git,那我就哭了!
  • 原文地址:https://www.cnblogs.com/insane-Mr-Li/p/15156715.html
Copyright © 2011-2022 走看看