Git Product home page Git Product logo

Comments (7)

zengfr avatar zengfr commented on August 18, 2024

image

from ng-devui-admin.

GreatZPP avatar GreatZPP commented on August 18, 2024

从截图报错看,可排查你的项目是否为使用cli@12版本创建

使用 npm i -g @angular/cli@11,全局安装11版本cli

from ng-devui-admin.

zengfr avatar zengfr commented on August 18, 2024

npm i -g @angular/cli@11 切到11后
npm start 还是一样
image

from ng-devui-admin.

GreatZPP avatar GreatZPP commented on August 18, 2024

重新install cli后 需要重新使用cli新建一个项目 安装对应版本依赖哦

from ng-devui-admin.

zengfr avatar zengfr commented on August 18, 2024

是的。 除了 cli@11 其他都是最新的版本, 清空目录, 清空缓存全新安装的。
应该是npm 7最新的问题, 还有一个可能是amd cpu 有提示警告 。

npm 7中引入的一项新功能是自动安装peer dependencies。在npm的之前版本(4-6)中,peer dependencies冲突会有版本不兼容的警告,但仍会安装依赖并不会抛出错误。在npm 7中,如果存在无法自动解决的依赖冲突,将会阻止安装。

可以通过使--force选项重新安装来绕过冲突,或者选择--legacy-peer-deps选项peer dependencies的依赖关系(类似于npm版本4-6)。

由于许多包都依赖宽松的peer dependencies解析,npm 7将打印警告并解决包依赖树中存在的大多数同级冲突,因此这些冲突不能手动处理。要在所有层级强制执行严格正确的peer dependencies依赖关系,请使用--strict-peer-deps选项。

from ng-devui-admin.

zengfr avatar zengfr commented on August 18, 2024

加 --force 解决了

from ng-devui-admin.

GreatZPP avatar GreatZPP commented on August 18, 2024

这样啊,我们确实还没有在npm7下测试过。
我们下来也在amd + npm7进行安装测试,尝试复现并解决该问题。
抱歉之前回复过于主观了,希望收到你使用过程中更多的建议。

from ng-devui-admin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.