Skip to content

[DOCS] npm run-script is said to use bash, but actually uses cmd on Windows #4622

Closed
@Dionysusnu

Description

@Dionysusnu

Is there an existing issue for this?

  • I have searched the existing issues

This is a CLI Docs Problem, not another kind of Docs Problem.

  • This is a CLI Docs Problem.

Description of Problem

The page says:

Scripts are run by passing the line as a script argument to sh.

But the CLI actually uses the user's config option first, or if no config is set, cmd on Windows, sh on others. The hyperlinks go to the code responsible for those decisions.

Potential Solution

No response

Affected URL

https://docs.npmjs.com/cli/v8/using-npm/scripts#exiting

Edit: Changed the code links to point to code as it was then instead of latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    Documentationdocumentation related issuePriority 2secondary priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions