react: Bug: Devtools' update-notifier usage is overly eager

When I run the devtools, I get the update-notifier message:

   ╭────────────────────────────────────────╮
   │                                        │
   │    Update available 4.4.0 → 4.9.0      │
   │   Run npm i react-devtools to update   │
   │                                        │
   ╰────────────────────────────────────────╯

I appreciate the goal of this message. However, the suggested command to run is incorrect for my repo. We use yarn, not npm. And we use a monorepo. This is confusing for devs who are new to the repo.

Would it be possible to suppress the update-notifier message? The team that manages usage of react-devtools in our tool chain is happy to stay on top of updates themselves.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 24 (11 by maintainers)

Most upvoted comments

Like I said, I don’t think we need to cover all use case 😄 It’s nice to mention the most common case or two. That looks fine.

it’s not great to have a message that says something like “use yarn or use npm”, because devs in my repo must use yarn.

Practically speaking, developers in your repo will encounter many libraries that say npm i something in their instructions. So they need to be aware anyway that npm i something should be substituted by yarn add something in general in your repo. I don’t think this is a critical issue in this case.