From 36bf5fe2a0a2ef7f7ffc0b302eea15e227556010 Mon Sep 17 00:00:00 2001 From: AaronHamilton965 <91709196+AaronHamilton965@users.noreply.github.com> Date: Mon, 17 Jul 2023 14:46:00 -0700 Subject: [PATCH] docs: Added steps for using npm/npx locally to CONTRIBUTING.md (#6643) Co-authored-by: Rahul <122141535+rahulio96@users.noreply.github.com> --- CONTRIBUTING.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e12e300210841..eb2beb45f1e8a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -48,6 +48,28 @@ We use [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/). We use [`tap`](https://node-tap.org/) for testing & expect that every new feature or bug fix comes with corresponding tests that validate the solutions. Tap also reports on code coverage and it will fail if that drops below 100%. +To run your repository's version of the npm cli on your local machine use the following commands: + +**npm commands:** +```bash +node . +``` + +**npx commands:** +```bash +node . exec +``` + +For example instead of: +```bash +npm exec -- +``` +Use: +```bash +node . exec -- +``` + + ## Performance & Benchmarks We've set up an automated [benchmark](https://github.com/npm/benchmarks) integration that will run against all Pull Requests; Posting back a comment with the results of the run.