1、问题:

Your global`在这里插入代码片` Angular CLI version (12.1.1) is greater than your local version (11.2.14). The local Angular CLI version is used.To disable this warning use "ng config -g cli.warnings.versionMismatch false".

翻译过来是:您的全局CLI版本(12.1.1)高于本地版本(11.2.14)。使用本地CLI版本。
要禁用此警告,请使用“ng config-g cli.warnings.versionMismatch false”。
解决办法:升级版本
具体操作:(好像等一会就自己好了,但是最好升级一下版本)
在cmd升级:npm install --save-dev @angular/cli@latest

2、问题:The serve command requires to be run in an Angular project, but a project definition could not be found.
解决办法

翻译过来:
serve命令要求在角度项目中运行,但找不到项目定义

你在终端或者cmd里cd到angular项目的根目录(package.json的所在文件夹)再ng serve运行就可以了

2,问题:

npm WARN ajv-keywords@3.5.2 requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN karma-jasmine-html-reporter@1.7.0 requires a peer of jasmine-core@>=3.8 but none is installed. You must install peer dependencies yourself.
npm WARN ngx-echarts@7.0.1 requires a peer of @juggle/resize-observer@>=3.3.1 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\webpack-dev-server\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

翻译过来是:
npm警告ajv-keywords@3.5.2需要ajv@^6.9.1对等机,但未安装任何对等机。必须自己安装对等依赖项。

npm警告因果报应茉莉花html-reporter@1.7.0需要jasmine core@>=3.8的对等机,但未安装。必须自己安装对等依赖项。

npm警告ngx-echarts@7.0.1需要@juggle/resize observator@>=3.3.1的对等方,但未安装任何对等方。必须自己安装对等依赖项。

npm WARN optional跳过可选依赖项:fsevents@2.3.2(节点\u模块\fsevents):

npm WARN notsup跳过可选依赖项:不支持的平台fsevents@2.3.2:通缉{“os”:“darwin”,“arch”:“any”}(当前:{“os”:“win32”,“arch”:“x64”})

npm WARN optional跳过可选依赖项:fsevents@1.2.13(node\u modules\webpack dev server\node\u modules\fsevents):

npm WARN notsup跳过可选依赖项:不支持的平台fsevents@1.2.13:通缉{“os”:“darwin”,“arch”:“any”}(当前:{“os”:“win32”,“arch”:“x64”})

解决办法:
npm install ajv@^6.9.1

3,问题:

npm WARN karma-jasmine-html-reporter@1.7.0 requires a peer of jasmine-core@>=3.8 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\webpack-dev-server\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})+ ajv@6.9.1
added 3 packages from 1 contributor and updated 1 package in 8.908s

问题分析:我看到有帖子说,这个警告说你的包karma-jasmine-html-reporter与jasmine版本>=3有同伴依赖。 基本上,如果您安装最新版本的jasmine ,则会删除警告。 目前最新版本的jasmine是3.1.0,如果你安装该版本,你的问题就会消失。
您可以通过运行npm install --save-dev jasmine来修复此警告。
但是我这样做了以后问题还是没有解决,
这个问题是我在安装echarts的依赖时出现的问题,
只要我

npm install echarts --save

就会报上面的错误,但是当我把npm改成cnpm时,这个问题居然就解决了,具体为啥我也不知道,成功后的界面如下所示:

√ Installed 1 packages
√ Linked 3 latest versions
√ Run 0 scripts
√ All packages installed (3 packages installed from npm registry, used 19s(network 19s), speed 475.57KB/s, json 3(14.17KB), tarball 8.71MB)

npm WARN ajv-keywords@3.5.2 requires a peer of ajv@^6.9.1 but none is installed. You must install pe相关推荐

  1. npm WARN webpack-cli@3.3.11 requires a peer of webpack@4.x.x but none is installed. You must install

    安装webpack和webpack-cli时出现的问题: npm WARN webpack-cli@3.3.11 requires a peer of webpack@4.x.x but none i ...

  2. npm 报错 ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0

    报错提示 npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must insta ...

  3. Vue 报错 | warn ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must insta

    git clone 一个 vue 项目,npm install ,结果报错: warn ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but non ...

  4. 问题:npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed.

    在react项目中, npm install 时,报错: npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is i ...

  5. npm安装webpack时,报错npm WARN ajv-keywords@3.1.0 requires a peer of ajv@^6.0.0 but none is installed.

    npm WARN ajv-keywords@3.1.0 requires a peer of ajv@^6.0.0 but none is installed. You must install pe ...

  6. npm WARN ajv-keywords@2.1.1 requires a peer of ajv(已解决)

    在执行npm install命令安装依赖包的时候,一直报错如下 npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none i ...

  7. npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed.

    今天使用npm install 时一直发现有个WARN 作为一名稍微有代码洁癖和警告排障者来说 实在是不能忍 WARN信息:npm WARN ajv-keywords@3.2.0 requires a ...

  8. npm WARN ajv-keywords@3.1.0 requires a peer of ajv@^6.0.0 but none is installed. You must install pe

    npm install 依赖警告 npm WARN ajv-keywords@3.1.0 requires a peer of ajv@^6.0.0 but none is installed. Yo ...

  9. npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed

    npm安装easymock的依赖出错: npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. ...

最新文章

  1. Mybatis框架实现简单的学生管理系统
  2. BZOJ.5068.友好的生物(思路)
  3. Nauuo and Cards
  4. 通过Filter统一全站编码
  5. 缓存穿透缓存雪崩,缓存击穿,django的6种缓存数据
  6. Doldrums:功能强大的逆向工程分析工具
  7. Premiere Pro CC 2019破解教程
  8. jquery form表单序列化,并ajax实现提交后台
  9. 汽车电工及电子技术基础【1】
  10. arcgis双标准纬线等角圆锥投影_常用地图投影之圆锥投影
  11. PS:将一个图片变成圆形
  12. div+css三栏式布局
  13. Zookeeper学习笔记2-------group创建、查询、删除
  14. Keil MDK5工程文件不可修改(文件符号上带一个黄色的钥匙)
  15. 大数据营销的优势和核心
  16. Docker 网络连通
  17. 落地,请开手机李小晚【转】
  18. alm系统的使用流程_HPQC测试管理平台ALM操作使用手册.doc
  19. gem意思_GEM什么意思
  20. 用Mysql做个人信息管理系统_个人信息管理系统数据库设计精选.doc

热门文章

  1. GET请求和POST请求有什么区别?GET请求的参数在URL的问号后面显示,而POST参数不在URL上;POST可以比GET请求更大的数据…一般的回答都是这样。 但是作为一个高端大气上档次的程序
  2. 微信小程序 转发 分享功能(二)
  3. bootstrap制作导航条案例
  4. 静电放电点在金属外壳上时,ESD共模十扰
  5. 晶体(Crystal)/晶振(Oscillator)
  6. Android dialog 弹窗背景图片默认为白色问题
  7. 阿里国际站营销中心最新升级有什么变化
  8. java画蝴蝶_java之数组
  9. 程序员:报警快把我折腾疯了
  10. python 将一个xls格式文件另存为xlsx格式