firebase / firebase-tools

The Firebase Command Line Tools
MIT License
4.01k stars 929 forks source link

npm warns of inflight use during installation #7214

Open KenSharp opened 4 months ago

KenSharp commented 4 months ago

Environment info

$ firebase --version 13.10.0

Platform: Ubuntu 22.04

Steps to reproduce

$ sudo npm install -g firebase-tools npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.

Of course I realise this could be a dependency of a dependency.

google-oss-bot commented 4 months ago

This issue does not seem to follow the issue template. Make sure you provide all the required information.

lazydoug commented 4 months ago

I just experienced this after running npm update.

Disclaimer: I am not using Firebase though. I'm working with Next.js.

@KenSharp, the issue is not with Firebase or Next.js either, but with third-party packages that depend on inflight.

You can confirm this by running the command npm ls inflight. The result is a trace/list of packages that are dependents of the inflight package.

You can read more here https://stackoverflow.com/questions/76412987/why-npm-ls-does-not-return-all-dependencies/78529720#78529720

UsmanAli2002 commented 4 months ago

im also facing same issue when running " install -g firebase-tools "

these are the warning :

npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.

npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported

npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported

i event updated the npm nvm and firebase tools to latest versions. Note: i want to connect firebase with flutter project.

joehan commented 4 months ago

Hey all, thanks for reporting this. I've taken a pass thru and updated all the dependencies to minimize the use of the deprecated packages. I've also opened issues for our dependencies that are still using outdated inflight/glob, and will update once they've released versions that no longer use them.

MalahimHaseeb commented 3 months ago

i also facing these warnings during installation of vite , react or next js.What should i do to solve these warnings

npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm warn deprecated @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead

chris-avens commented 2 months ago

also got the warnings

npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm warn deprecated @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead

anyone have a solution for this?

ankitbavne commented 2 months ago

I’m getting a warning in my NestJS project. while cloning Nestjs project

npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm warn deprecated @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead