Skip to content

Could the error if you try to run npm run dev without having run npm install be improved? #2288

@oscarduignan

Description

@oscarduignan

Context

When someone tries to run npm run dev without having run npm install they see an error like this:

$ npm run dev
> dev
> govuk-prototype-kit dev
'govuk-prototype-kit' is not recognized as an internal or external command,
operable program or batch file.

Would it be possible for the dev script to check to let the user know if they might need to run npm install?

What I mean is something like

{
  "scripts": {
    "dev": "npm run check-if-npm-install-has-been-run && govuk-prototype-kit dev"
  }
}

Alternatives

guess there might be other ways to inform user to remember to run npm install

Additional information (if applicable)

N/A

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