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

    每天一点点,感受自己存在的意义。
  • 相关阅读:
    如何阅读大型代码库?
    发现一个时隐时现的bug!
    写给开发者:记录日志的10个建议
    教你一眼认出英语单词的意思
    为什么我要使用一个20年前的IBM老键盘
    有了screen,妈妈再也不用担心我的学习啦
    一次优秀的代码提交应该包含什么?
    你需要的不是重构,而是理清业务逻辑
    Android中监听ListView滑动到底部
    Android中的Handler,Looper,Message机制
  • 原文地址:https://www.cnblogs.com/insane-Mr-Li/p/15156715.html
Copyright © 2011-2022 走看看