我是Angular的新手,我一周前安装了它。初次使用时没有注意,但是今天我用ng new
创建了一个新的空项目,几乎在每个软件包上,它都已弃用或“不再维护”,等等:
npm WARN deprecated [email protected]: core-js@<3.0 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated [email protected]: One of your dependencies needs to upgrade to fsevents v2: 1) Proper nodejs v10+ support 2) No more fetching binaries from AWS, smaller package size
如何以及如何更新npm以避免这种情况并确保拥有最新版本的软件包?
core-js
现在是3.4.7版。要进行更新,请转到您的项目路线,然后在终端中输入:
npm install --save core-js@3
这会将您更新到最新版本。