2017-07-28 50 views
1

我得到NPM此錯誤安裝什麼是Angular 4的穩定版動畫?

NPM WARN @角/動畫@ 4.3.2要求@角/核心的@ 4.3.2同行,但安裝沒有。

,我得到這個在NPM啓動

node_modules/@angular/platform-b​​rowser/animations/src/providers.d.ts(8119):錯誤TS2305:模塊「「E:/角/ quickstart-master1/quickstart-master/node_modules/@ angular /動畫/瀏覽器「'沒有導出成員'ɵDomAnimationEngine'。

這是我得到納克以下@angular -v

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

Please take the following steps to avoid issues: 
"npm install --save-dev @angular/[email protected]" 

    _      _     ____ _  ___ 
/\ _ __ __ _ _ _| | __ _ _ __ /___| | |_ _| 
/△ \ | '_ \/_` | | | | |/ _` | '__| | | | | | | 
/___ \| | | | (_| | |_| | | (_| | |  | |___| |___ | | 
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_|  \____|_____|___| 
       |___/ 
@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 
+1

您正在嘗試運行Angular Animations的4.3.2版本和其他Angular的4.0.3版本。你應該全面運行相同的版本。 –

回答

0

所有的包裝都應該有相同的版本。

對於您的情況,請使用@angular/[email protected]或首選將@angular程序包的其餘部分更新爲@latest