docs/contributing.md: encourage npm ci instead of npm install
Update golang/vscode-go#2010
Change-Id: I793e044507c628f40d322780a56d7b003315f1df
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/379154
Trust: Hyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
diff --git a/docs/contributing.md b/docs/contributing.md
index a7d37b7..bafc7ad 100644
--- a/docs/contributing.md
+++ b/docs/contributing.md
@@ -35,12 +35,12 @@
### Setup
1) Install [node](https://nodejs.org/en/). Note: make sure that you are using `npm v7` or higher. The file format for `package-lock.json` (changed significantly)[https://docs.npmjs.com/cli/v7/configuring-npm/package-lock-json#file-format] in `npm v7`.
-2) Clone the repository, run `npm install`, and open VS Code:
+2) Clone the repository, run `npm ci`, and open VS Code:
```bash
git clone https://go.googlesource.com/vscode-go
cd vscode-go
- npm install
+ npm ci
code .
```
@@ -79,13 +79,13 @@
1. Install the [vsce](https://code.visualstudio.com/api/working-with-extensions/publishing-extension#vsce) tool for packaging extensions (`npm install -g vsce`).
2. `cd` into your `vscode-go` directory.
-3. Install all dependencies by running `npm install`.
+3. Install all dependencies by running `npm ci`.
4. Run `vsce package`. This will generate a file with a `.vsix` extension in your current directory.
```bash
npm install -g vsce
cd vscode-go
- npm install
+ npm ci
vsce package
```