Reputation: 129
npm WARN deprecated [email protected]: flatten is deprecated in favor of utility frameworks such as lodash.
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated [email protected]: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/address'
npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-babel.
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
tps://v8.dev/blog/math-random for details.
npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/[email protected]: Switch to 'npm install joi'
npm WARN deprecated [email protected]: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
Upvotes: 8
Views: 33497
Reputation: 71
Run npm ls package_name@version
so in your case for first package
npm ls [email protected]
You will get the source of its installation. Something like this (for example)
│ │ └─┬ [email protected]
│ │ └─┬ [email protected]
│ │ └─┬ [email protected]
│ │ └── [email protected]
So, if it is a direct installation, you can simply find newer version from https://www.npmjs.com. Update the version directly in package.json, remove node_modules folder, and run npm i
.
If it is not a direct installation, you can try updating the parent package in a similar way, and see if it contains updated version of required package. After updating the parent package version in package.json, you will not get error message in terminal, if it contains updated version of outdated package.
This will resolve the error message.
Upvotes: 3
Reputation: 51
These warnings are coming from the libraries that you are using in package.json. There are 2 types of libraries:
So what you have to do:
Run npm list --depth=3
(increase the depth if you didn't found it)
and track the source of the library, once you found it you have 2 choices:
Upvotes: 5
Reputation: 27
Try
npm i -g
or
delete your current version of node and reinstall the latest stable version.
Either of these should work.
Upvotes: -4
Reputation: 101
I had a similar issue. Just use the following command to update the version of your npm:
npm install -g npm
Upvotes: 10