Skip to content

Commit

Permalink
nvm has a Windows port
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftkey committed Nov 22, 2018
1 parent 842f560 commit b7ccba8
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions docs/contributing/setup-windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,31 @@ the top of your current install.

### I need to use different versions of Node.js in different projects!

_TODO: what options do we have here for Windows?_
We currently support `nvm`.

#### Configuring `nvm`

1. Install `nvm` using the instructions [here](https://github.com/coreybutler/nvm-windows).

2. Within the Desktop source directory, install version of Node.js it requires:

```shellsession
$ nvm install
```

3. Ensure you are running the right version:

```shellsession
$ nvm use
```

4. Verify you have the right version by running `node -v` again:

```shellsession
$ node -v
```

If you see `v8.12.0`, you're good to go.

## Yarn

Expand Down Expand Up @@ -71,10 +95,6 @@ don't have any Node tools installed. You can install Python 2.7 from the
you'll have to configure `node-gyp` manually to look at a different path.
- Ensure the **Add python.exe to Path** option is selected.

### I need to use different versions of Python in different projects!

_TODO: what options do we have here for Windows?_

## Visual C++ Build Tools

To build native Node modules, you will need a recent version of Visual C++ which
Expand Down

0 comments on commit b7ccba8

Please sign in to comment.