Skip to content

Commit 2dfa8a4

Browse files
authored
chore: suggest dogfooding npm when developing it (#5159)
Some folks may be running older versions of npm globally, or maybe even have aliased another package manager to `npm`. This will ensure the latest npm source is running when developing the cli itself.
1 parent 45a9bde commit 2dfa8a4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $ git clone [email protected]:npm/cli.git npm
1919
**2. Navigate into project & install development-specific dependencies...**
2020

2121
```bash
22-
$ cd ./npm && npm install
22+
$ cd ./npm && node . install
2323
```
2424

2525
**3. Write some code &/or add some tests...**
@@ -30,7 +30,7 @@ $ cd ./npm && npm install
3030

3131
**4. Run tests & ensure they pass...**
3232
```
33-
$ npm run test
33+
$ node . run test
3434
```
3535

3636
**5. Open a [Pull Request](https://github.com/npm/cli/pulls) for your work & become the newest contributor to `npm`! 🎉**
@@ -42,7 +42,7 @@ We use [`tap`](https://node-tap.org/) for testing & expect that every new featur
4242
**You can find out what the current test coverage percentage is by running...**
4343

4444
```bash
45-
$ npm run check-coverage
45+
$ node . run check-coverage
4646
```
4747

4848
## Performance & Benchmarks

0 commit comments

Comments
 (0)