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

yo depends on deprecated module.parent, should update meow #786

Open
loynoir opened this issue May 12, 2023 · 2 comments
Open

yo depends on deprecated module.parent, should update meow #786

loynoir opened this issue May 12, 2023 · 2 comments

Comments

@loynoir
Copy link

loynoir commented May 12, 2023

Type of issue


My environment

  • OS version/details: eg. Windows 10 64-bit
  • Node version: x.x.x (run node --version in your terminal)
  • npm version: x.x.x (run npm --version in your terminal)
  • Version of yo : x.x.x (run yo --version in your terminal) 4.3.1

Expected behavior

Should update meow to a version don't use module.parent.

Current behavior

[email protected] depends on [email protected]
https://github.com/yeoman/yo/blob/v4.3.1/package.json#L59

[email protected] depends on module.parent.filename
https://github.com/sindresorhus/meow/blob/v5.0.0/index.js#L15

module.parent Deprecated since: v14.6.0, v12.19.0

https://nodejs.org/api/modules.html#moduleparent

Steps to reproduce the behavior

Command line output

Paste your error output over here

Related

denoland/deno#19105

@loynoir loynoir changed the title yo depends on deprecated module.parent yo depends on deprecated module.parent, should update meow May 12, 2023
@phoenisx
Copy link

phoenisx commented Sep 4, 2024

I am getting this error, when running deno -A npm:yo webapp:

 Uncaught TypeError: chalk.red.bold is not a function

The above error occurs because of having multiple chalk versions I guess. yo internally uses v5.x, while there's an indirect dependency to chalk v1.x.

Not sure if this is a deno issue or a yeoman issue.
I checked that yeoman closed the root-check upgrade PR: #699
So starting a discussion here instead.

@Thaina
Copy link

Thaina commented Sep 18, 2024

npmlog also deprecated

npm warn deprecated npmlog@2.0.4: This package is no longer supported.
npm warn deprecated gauge@1.2.7: This package is no longer supported.
npm warn deprecated are-we-there-yet@1.1.7: This package is no longer supported.

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

No branches or pull requests

3 participants