Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

Feature Request: Show suggestions when npm run script can't find script #20858

@AlvaroBernalG

Description

@AlvaroBernalG

Hello good people of npm,

I'm opening this issue because:

  • npm is crashing.
  • npm is producing an incorrect install.
  • npm is doing something I don't understand.
  • npm is producing incorrect or undesirable behavior.
  • Other (see below for feature requests):

What's the feature?

Whenever npm run 'script' is unable to find 'script', display a list with all possible available scripts.

Example:

screen shot 2018-05-31 at 23 38 06

What problem is the feature intended to solve?

Improves the user experience.

Is this feature similar to an existing feature in another tool?

git and npm does a similar thing whenever a built in command is misspelled:

screen shot 2018-05-31 at 21 57 06

screen shot 2018-05-31 at 22 52 53

Is this a feature you're prepared to implement, with support from the npm CLI team?

Yes.

Thanks for all the awesome work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions