Skip to content

Repo: Many dev commands require a global nx command #7987

Closed
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Suggestion

Commands prefixed with nx (e.g. nx run ...) require either something like npx nx in front or a global nx script, such as from npm i -g npm. If you don't then trying to run them gives an error:

josh ~/repos/typescript-eslint/packages/website $ yarn start
command not found: nx

Running a search for ": "nx in package.json files, we get 40 results in 18 files right now.

I think we have two likely workarounds:

  • Explicitly require dev machines have run something like npm i -g nx
  • Prefix all those commands with something like npx (e.g. instead of `nnx

Metadata

Metadata

Assignees

No one assigned

    Labels

    repo maintenancethings to do with maintenance of the repo, and not with code/docstriageWaiting for team members to take a look

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions