Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm WARN deprecated [email protected] #2609

Closed
2 of 4 tasks
keyboy21 opened this issue May 23, 2024 · 13 comments
Closed
2 of 4 tasks

npm WARN deprecated [email protected] #2609

keyboy21 opened this issue May 23, 2024 · 13 comments

Comments

@keyboy21
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

npm WARN deprecated [email protected]: 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.

Minimum reproduction code

Since this happens with CLI usage, I don't see how I can provide meaningful reproduction code.

Steps to reproduce

  1. npm i -g @nestjs/cli
  2. See warning

Expected behavior

wihtout warning

Package version

10.3.2

NestJS version

No response

Node.js version

20.13.1

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

No response

@Levon770
Copy link

Levon770 commented Jun 1, 2024

same on Node.js version 22.2.0

@micalevisk
Copy link
Member

micalevisk commented Jun 1, 2024

image

that is a transitive dependency

it's used by shelljs so you should report this to https://github.com/shelljs/shelljs as they should upgrade glob to their latest version

As long as you don't use the asset feature, you don't need to worry about it.

if (action === 'change') {
shell.mkdir('-p', dirname(dest));

I guess we can't do much on our side

@jaimeviloriogreen
Copy link

jaimeviloriogreen commented Jun 3, 2024

I had the same issue when installing nest cli on mac os m3:

npm warn deprecated [email protected]: 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 [email protected]: Glob versions prior to v9 are no longer supported

@TheStutzen
Copy link

  • I have exactly the same problem when installing nest.js on a mac apple sillicon
npm i -g @nestjs/cli
npm warn deprecated [email protected]: 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 [email protected]: Glob versions prior to v9 are no longer supported

@TheStutzen
Copy link

TheStutzen commented Jun 5, 2024

  • I solved the problem by changing the package manager to yarn, but this does not solve the problem with a clean installation of nest.js using the npm package manager

@tanayvaswani
Copy link

Same error Macbook Air M2, any ideas why is this happening?

npm warn deprecated [email protected]: 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/[email protected]: Use @eslint/config-array instead
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated @humanwhocodes/[email protected]: Use @eslint/object-schema instead
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported

@micalevisk
Copy link
Member

@micalevisk
Copy link
Member

btw this is being tracked here: shelljs/shelljs#1149

@adeboyega
Copy link

I cant use vite, react or Next.js right now do i need to update something ?>

'_Wisdom\my-app\node_modules.bin' is not recognized as an internal or external command,
operable program or batch file.
node:internal/modules/cjs/loader:1147
throw err;
^

Error: Cannot find module 'C:\Users\USER\Desktop\Webprojects\next\dist\bin\next'
at Module._resolveFilename (node:internal/modules/cjs/loader:1144:15)
at Module._load (node:internal/modules/cjs/loader:985:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

Node.js v20.11.0

@MalahimHaseeb
Copy link

i also currently facing this error .How to resolve it ?
npm warn deprecated [email protected]: 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/[email protected]: Use @eslint/config-array instead
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated @humanwhocodes/[email protected]: Use @eslint/object-schema instead

@adeboyega
Copy link

adeboyega commented Jun 26, 2024 via email

@Al-Sharif
Copy link

@adeboyega, " 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."

@kamilmysliwiec
Copy link
Member

#2526

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants