Skip to content

npm-to-yarn appears to fail when using 'npx' instead of 'npm' #7908

@spenceradolph

Description

@spenceradolph

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn clear command.
  • I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • I have tried creating a repro with https://new.docusaurus.io.
  • I have read the console error message carefully (if applicable).

Description

The problem is actively in the official docs here https://docusaurus.io/docs/installation#updating-your-docusaurus-version

On the line that says To check that the update occurred successfully, run:

The npm and yarn tabs are visible and usable, but clicking between them doesn't change the command below it.
This is likely an issue with the npm-to-yarn package being used, but perhaps this section could simply be re-worked to just avoid the issue entirely.

Reproducible demo

https://docusaurus.io/docs/installation#updating-your-docusaurus-version

Steps to reproduce

  1. Visit https://docusaurus.io/docs/installation#updating-your-docusaurus-version

Expected behavior

Expected tabs between yarn and npm to work correctly.

Actual behavior

The codeblock underneath the tabs stays on 'npx'

Your environment

  • n/a

Self-service

  • I'd be willing to fix this bug myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    closed: working as intendedThis issue is intended behavior, there's no need to take any action.externalThis issue is caused by an external dependency and not Docusaurus.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions