Skip to content

NPM 7 fails with an empty script. #2171

@mshima

Description

@mshima

Current Behavior:

NPM 7 fails with an empty script.

Expected Behavior:

Not to fail.

Steps To Reproduce:

package.json:

{
  "scripts": {
    "empty": ""
  }
}

Command

npm run empty

Result:

npm ERR! missing script: empty
npm ERR!
npm ERR! Did you mean this?
npm ERR!     empty

Environment:

  • OS: MacOS 10.15.7
  • Node: 14.15.0
  • npm: 7.0.10

Metadata

Metadata

Assignees

Labels

Bugthing that needs fixingRelease 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