Angular 4 的稳定版动画是什么?

What is a stable version of animations for Angular 4?

我在 npm 安装时遇到这个错误

npm WARN @angular/animations@4.3.2 需要 @angular/core@4.3.2 的对等体,但已安装 none。

我在 npm start 上得到了这个

node_modules/@angular/platform-browser/animations/src/providers.d.ts(8,119):错误 TS2305:模块“"E:/Angular/quickstart-master1/quickstart-master/node_modules/@angular/animations/browser"”没有导出成员“ɵDomAnimationEngine” .

这就是我通过 ng -v 得到的结果

Unable to find "@angular/cli" in devDependencies.

Please take the following steps to avoid issues:
"npm install --save-dev @angular/cli@latest"

    _                      _                 ____ _     ___
   / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
  / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
 / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
/_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
               |___/
@angular/cli: 1.2.1
node: 6.11.1
os: win32 x64
@angular/animations: 4.3.2
@angular/common: 4.0.3
@angular/compiler: 4.0.3
@angular/core: 4.0.3
@angular/forms: 4.0.3
@angular/http: 4.0.3
@angular/platform-browser: 4.0.3
@angular/platform-browser-dynamic: 4.0.3
@angular/router: 4.0.3

@angular 下面的所有软件包应该具有完全相同的版本。

在您的情况下,要么使用 @angular/animations@4.0.3,要么首选将 @angular 包的其余部分更新为 @latest