Skip to content

docs: it is better to use "npx nx" than "npm install -g nx"#210

Merged
joanise merged 1 commit intomainfrom
dev.npx-docs
Jun 22, 2023
Merged

docs: it is better to use "npx nx" than "npm install -g nx"#210
joanise merged 1 commit intomainfrom
dev.npx-docs

Conversation

@joanise
Copy link
Copy Markdown
Member

@joanise joanise commented Jun 21, 2023

This PR is more about soliciting feedback, and only to be merged if there is consensus.

I have stopped ever using npm install -g for anything because the global ng or nx or whatnot invariably ends up being out of sync with my projects, especially when I have multiple projects which require different versions.

So I now systematically use npx nx or npx ng or invoke ng via an npm script, and thus in all cases I'm running the ng or nx CLI that in installed in the project with the version dictated by package-lock.json.

I think this practice is also how our documentation should say to do things, but I also understand this might not be everyone's preference. Please let me know what you think and we can merge if there is consensus or close otherwise.

@joanise joanise requested review from dhdaines and roedoejet June 21, 2023 13:32
@joanise joanise merged commit 288371c into main Jun 22, 2023
@joanise joanise deleted the dev.npx-docs branch June 22, 2023 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants