好吧,当我使用 npm 安装一些依赖项或一些库时,有时,在命令提示符下,我会收到一些错误或警告,如下所示:
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 install moment.js --save
图书馆,在这种情况下:'moment.js' 很好用!但我的疑问是,一些建议?
NPM 会警告您,因为angular-datatables
需要对等依赖项,模块需要运行的特定依赖项,但这些只是警告,如果一切正常,您不需要自己安装这些对等依赖项。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句