question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lerna commands throw yargs warning

See original GitHub issue

When I run Lerna commands, i.e. lerna list, I get the following warning.

Configuring yargs through package.json is deprecated and will be removed in a future major release, please use the JS API instead.
Configuring yargs through package.json is deprecated and will be removed in a future major release, please use the JS API instead.

Expected Behavior

No yargs warning

Current Behavior

yargs warning is present

lerna.json

{
  "npmClient": "yarn",
  "packages": ["packages/*"],
  "useWorkspaces": true,
  "version": "independent"
}

Your Environment

Executable Version
lerna --version 3.16.5
npm --version 6.10.3
yarn --version 1.19.1
node --version v10.16.1
OS Version
macOS Catalina 10.15

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
Joshua-rosecommented, Jan 17, 2020

Issue appears to still be present in v3.20.2 🙁

6reactions
YoDaMacommented, Jan 30, 2020

ditto seeing this warning in lerna v3.20.2, but we have no yargs that are being configured.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to get rid of Lerna Warnings on "yarn" command
I am running "yarn" and I am getting all of these lerna warnings. Is there a way I can hide these so they...
Read more >
Getting error while building mobile app - Axelor Forum
Hi Team,. I am getting below error while building mobile app. Kindly help me to fix this issue. lerna info version 2.5.1
Read more >
@lerna/batch-packages: Versions | Openbase
command : Bump minimum range of lodash, silence dumb 'security' warning (c405871); conventional-commits: Hard-pin lodash.template dependency to silence ...
Read more >
pnpm/pnpm - Gitter
I am currently using Lerna and my use case is for React.lazy, it only supports default ... pnpm/grpc@1.24.2/node_modules/grpc install: gyp ERR! command ......
Read more >
Getting error messages when running yarn commands
json', requestPath: 'yargs' } error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found