When I run :

ng v

I get the version in the screenshot. Where does "Angular: 13.3.8" come from and how can I revert it to 13.3.7 ?

Also, where do the Packages come from in this screenshot? They differ from my packages.json

enter image description here

I checked the install and I only see 13.3.5 for @angular/cli

enter image description here

推荐答案

Everything in the version report are global versions, except for the Angular version.

For windows the global files are located in: C:\Users\yourname\AppData\Roaming\npm\node_modules\@angular\ They are usually installed using the global flag -g

e.g.: npm install -g @angular/cli

The angular version is only filled in if you run ng v inside a project.

If you open your lock-file (package-lock.json / yarn.lock / ... depending on your package manager), you will notice you will have version 13.3.8 in there.

In the package.json you will probably find something like ^13.3.5 remove the ^ if you want that specific version for some reason. Then just run install again with your package manager:

npm install

Angular相关问答推荐

Ionic 5角形共享两个模块之间的组件

Angular路由不响应子路由的子路由

以Angular 表示显示特殊字符

PrimeNG面包屑组件生成奇怪的&

Angular中的Bootstrap carousel动态属性

如何包装NGB carousel ?

Angular 16模块中未使用的组件是否从Bundle 包中删除(树摇动)?

在Angular中扩展多个类

Angular 按钮指令错误地附加子元素

执行ng generate environments时出错时需要合集和原理图

带有Angular 中断的进度条

我想将一个对象传递给一个子组件.我做了一切,但没有任何效果. (Angular )

错误:您要查找的资源已被删除、名称已更改或暂时不可用

为什么 Angular2 routerLinkActive 将活动类设置为多个链接?

如何测试 Angular2 的 router.navigate?

如何在angular material中使用输入类型文件

angular2中的httpinterceptor类似功能是什么?

测试一个包含 setTimeout() 的函数

如何在 Angular 应用程序中通过路由更改页面标题?

在angular-cli中创建模块时生成路由模块