更新,但没有成功
问题描述:
我从2角我的项目更新为4更新,但没有成功
我跑:
npm install @angular/[email protected] @angular/[email protected]
@angular/[email protected] @angular/[email protected] @angular/[email protected]
@angular/[email protected] @angular/[email protected] @angular/platform-
[email protected] @angular/[email protected]
@angular/[email protected] @angular/[email protected] [email protected] --save
,然后我有以下问题:
ERROR in [at-loader] ./node_modules/angular2-platform-node/node-platform.d.ts:1:10
TS2305: Module ‘”C:/angular/node_modules//platform-browser”‘ has no exported member ‘AnimationDriver’.
有人可以告诉我,我该怎么办?
答
请删除node_module文件夹,然后按照这些命令。它会自动将角2升级到角度4 +。
NPM我-g NPM-签更新
NPM-签更新-u
NPM安装
+0
我尝试了,但它同样的问题。 – user1938143
这是您的节点版本。通过运行node -v和npm -v – Hareesh
验证您是否至少运行了节点6.9.x和npm 3.xx Hi Hareesh,我通过运行npm -v进行了检查,结果是3.10.10 – user1938143