【问题标题】:package didn't add to the package.json after install安装后包没有添加到 package.json
【发布时间】:2022-01-03 08:42:37
【问题描述】:

我尝试使用此命令将@angular/fire 安装到我的 Angular 项目中。

npm install @angular/fire --save

但是 package.json 没有更新。如何解决这个问题?

【问题讨论】:

标签: angular


【解决方案1】:

也许它已经安装或存在于 node_modules 文件夹中。
再次检查 pakage-lock.json 和 node_modules 文件夹。

无论如何卸载它并重新安装将起作用。

npm uninstall @angular/fire --save
然后

npm install @angular/fire --save
再次。

【讨论】:

  • @angular/fire 只添加到 package-lock.json 中,我在 package.json 中看不到这个。
猜你喜欢
  • 2016-11-23
  • 2017-01-17
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-02-21
  • 1970-01-01
  • 2023-04-07
  • 2014-05-25
相关资源
最近更新 更多