2016-05-12 20 views
1

私は今、数年からイサキを使用してきた、それは永遠に私は次のような警告を見てきたようにされています:npm推奨されないWARN xxx:どうすればよいですか?

npm WARN deprecated [email protected]: use [cross-spawn](https://github.com/IndigoUnited/node-cross-spawn) or [cross-spawn-async](https://github.com/IndigoUnited/node-cross-spawn-async) instead. 
npm WARN deprecated [email protected]: [email protected]<2.0.0 is no longer maintained. Upgrade to [email protected]^3.0.0 
npm WARN deprecated [email protected]: [email protected]<3.0.0 is no longer maintained. Upgrade to [email protected]^4.0.0. 
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v6.0. Please update to [email protected]^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree. 
npm WARN deprecated [email protected]: [email protected]<3.0.0 is no longer maintained. Upgrade to [email protected]^4.0.0. 

私のプロジェクト、実際にも、これらの警告で、とにかく動作します。 lodashは、一般的に、私に警告を与えるものです。

{ 
    "name": "xxx", 
    "version": "0.1.1", 
    "devDependencies": { 
    "autoprefixer": "^6.2.3", 
    "cssnano": "^3.4.0", 
    "grunt": "^0.4.5", 
    "grunt-browser-sync": "^1.5.3", 
    "grunt-contrib-clean": "^1.0.0", 
    "grunt-contrib-concat": "~0.5.0", 
    "grunt-contrib-copy": "^1.0.0", 
    "grunt-contrib-htmlmin": "^0.6.0", 
    "grunt-contrib-imagemin": "^1.0.0", 
    "grunt-contrib-sass": "~0.7.4", 
    "grunt-contrib-uglify": "~0.5.1", 
    "grunt-contrib-watch": "~0.6.1", 
    "grunt-critical": "^0.2.0", 
    "grunt-delete-sync": "0.0.2", 
    "grunt-newer": "^0.7.0", 
    "grunt-postcss": "^0.7.1", 
    "grunt-processhtml": "^0.3.13" 
    } 
} 

は、私はいくつかのモジュールを推測したり、依存関係が古いですが...

1)なぜそれはまだ働いている:

ここで、これらのエラーを生成package.jsonファイルがですか?警告を無視しても安全ですか? 2)どのモジュールが古くなっているのか、またそれについて何をすべきですか?

答えて

1

推奨されていません、それ以上開発されていないことを意味しますが、それはまた変更されません。モジュールがバグを持つ廃止予定のパッケージに依存している場合、解決する唯一の方法は依存関係をアップグレードすることです。しかし、何も変わらないので、それは常に働いているように機能します。

関連する問題