Skip to content

Shell integration breaks paths inside npm commands on Windows #206285

@connor4312

Description

@connor4312
  1. Have a package.json like this:
{
    "scripts": {
        "foo": "npm run bar",
        "bar": "tsc"
    },
    "devDependencies": {
        "typescript": "^4.9.4"
    }
}
  1. Enable shell integration
  2. Run npm run foo. Get an error like "'tsc' is not recognized as an internal or external command"
  3. Disable shell integration
  4. Run npm run foo and it works

Metadata

Metadata

Labels

papercut 🩸A particularly annoying issue impacting someone on the teamunder-discussionIssue is under discussion for relevance, priority, approach

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions