简体   繁体   English

package.json不更新依赖关系

[英]package.json does not update dependencies

I recently tried to run my friend's project on my machine using the angular-cli . 我最近尝试使用angular-cli在我的机器上运行朋友的项目。 The dependencies in the package.json were old on his machine so I tried to update them using the following commands: package.json中的依赖项在他的计算机上很旧,因此我尝试使用以下命令来更新它们:

npm i -g npm-check-updates
npm-check-updates -u
npm install

The commang ng serve did render a few modules but I get these errors. 该命令ng serve确实渲染了一些模块,但出现了这些错误。

错误

What should I do? 我该怎么办?

安装并将角度动画保存到package.json文件中。

npm install @angular/animations@latest --save

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM