1. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
2. npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
3. npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
4. npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
5. npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
我尝试了几个命令,例如 npm clean cache --force 和 npm install npm @latest 等。然而,这个问题并没有得到解决。
答案 0 :(得分:0)
这意味着您的依赖项中的某些模块实际上依赖于这些过时的包。不幸的是, npm clean cache 无济于事。 要解决此问题,您首先需要分析 package-lock.json 文件 - 它包含您所涉及的所有模块的所有相互依赖关系树。然后,当您根据过时的模块找到所有模块时,您可能有 3 个选项: