为什么我得到这个警告?

问题描述 投票:0回答:1

好了,当我使用NPM,有时安装一些dependencie或某些库,在命令提示符下,我得到了一些错误或警告像这样的:

npm WARN [email protected] requires a peer of @angular/common@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of @angular/compiler@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of @angular/core@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of @angular/platform-browser@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of @angular/platform-browser-dynamic@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ [email protected]
added 1 package from 6 contributors and audited 40197 packages in 12.862s
found 1 high severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details

我用NPM安装moment.js --save

图书馆,在这种情况下:“moment.js”的伟大工程!但我的疑问是,一些建议吗?

angular npm
1个回答
1
投票

NPM警告你,因为angular-datatables需要同行的依赖,特定依赖的模块需要的功能,但这些仅仅是警告,如果一切正常,你并不需要自己安装这些同行的依赖。

© www.soinside.com 2019 - 2024. All rights reserved.