Skip to content

[BUG] Bad error wording consequent to typo #3670

Description

@Aster89

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When I entered

$ npm isntall --save-dev kss

I got

npm ERR! The `npm ci` command can only install with an existing package-lock.json or
npm ERR! npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
npm ERR! later to generate a package-lock.json file, then try again.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/enrico/.npm/_logs/2021-08-20T15_54_49_990Z-debug.log

and so I spent quite a lot surfing the web for a solution... except that there's no problem to solve, as I have simply written isntall instead of install.

Expected Behavior

A better wording such as this:

$ npm isntall --save-dev kss
npm ERR! The `isntall` command does not exist. Do you mean `install`?

Steps To Reproduce

See above

Environment

  • OS: archlinux
  • Node:
  • npm: 7.21.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingPriority 2secondary priority issueRelease 7.xwork is associated with a specific npm 7 release

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions