简体   繁体   English

运行npm install命令时收到“不建议使用npm WARN”警告

[英]Getting 'npm WARN deprecated' warnings while running npm install commands

I'm getting following warnings while running npm commands, how to update these dependencies ? 我在运行npm命令时收到以下警告,如何更新这些依赖关系?

npm WARN deprecated graceful-fs@3.0.8: graceful-fs version 3 and before will fail on newer node releases. npm WARN不推荐使用graceful-fs@3.0.8:graceful-fs版本3和更低版本在较新的节点版本上将失败。 Please update to graceful-fs@^4.0.0 as soon as possible. 请尽快更新至graceful-fs@^4.0.0。

npm WARN deprecated lodash@1.0.2: lodash@<3.0.0 is no longer maintained. npm WARN不推荐使用lodash@1.0.2:不再维护lodash @ <3.0.0。 Upgrade to lodash@^4.0.0. 升级到lodash@^4.0.0。

npm WARN deprecated npmconf@2.1.1: this package has been reintegrated into npm and is now out of date with respect to npm npm WARN不推荐使用npmconf@2.1.1:此软件包已重新集成到npm中,并且相对于npm已过时

My package.json - 我的package.json-

{
  "name": "lib",
  "version": "0.0.0",
  "author": {
    "name": "user",
    "email": "user@gmail.com"
  },
  "dependencies": {
    "gulp-install": "^0.6.0",
    "lodash": "^4.5.1"
  },
  "devDependencies": {
    "chai": "^1.9.1",
    "chai-jquery": "^1.2.3",
    "karma-mocha-reporter": "^0.3.1",
    "gulp": "^3.8.7",
    "gulp-concat": "^2.3.4",
    "gulp-rename": "^1.2.0",
    "gulp-uglify": "^0.3.1",
    "karma": "^0.12.22",
    "karma-chai": "^0.1.0",
    "karma-chai-jquery": "^1.0.0",
    "karma-chrome-launcher": "^0.1.4",
    "gulp-ng-annotate": "^0.3.3",
    "karma-jasmine": "^0.1.5",
    "karma-jquery": "^0.1.0",
    "karma-mocha": "^0.1.8",
    "karma-phantomjs-launcher": "^0.1.4",
    "karma-sinon-chai": "^0.2.0",
    "mocha": "^1.21.4",
    "sinon": "^1.10.3",
    "sinon-chai": "^2.5.0"
  },
  "engines": {
    "node": ">=0.8.0"
  }
}

You have packages, which are using old versions of these plugins. 您具有使用这些插件的旧版本的软件包。

You won't get rid of these warnings, till the developers of the packages upgrading their plugins (with the dependencies). 在软件包的开发人员升级其插件(具有依赖项)之前,您不会摆脱这些警告。

You can print all versions with all dependencies to find the targets: 您可以打印具有所有依赖性的所有版本以找到目标:

bower list --depth=2
npm list --depth=2

Increase the depth if you don't find them. 如果找不到它们,请增加深度。

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

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