Skip to content

Commit

Permalink
doc: update windows-build-tools installation instructions (#10862)
Browse files Browse the repository at this point in the history
windows-build-tools is now deprecated since NodeJs installer can now
install all of its required tools. This commit updates the instructions
on how to build Theia on Windows to inform developers about the
deprecation of windows-build-tools and mark the installation
instruction of the tool as fallback.

Signed-off-by: Hoang Thuan Pham <[email protected]>
  • Loading branch information
hoangphamEclipse authored Mar 8, 2022
1 parent 40a7eb2 commit 95383a9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions doc/Developing.md
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ etc.) by opening `packages/<package name>/coverage/index.html`.
- Install [`nvm`](https://github.com/coreybutler/nvm-windows) with scoop: `scoop install nvm`.
- Install Node.js with `nvm`: `nvm install 12.14.1`, then use it: `nvm use 12.14.1`. You can list all available Node.js versions with `nvm list available` if you want to pick another version.
- Install `yarn`: `scoop install yarn`.
- Install [`windows-build-tools`](https://github.com/felixrieseberg/windows-build-tools). Run `PowerShell` as _Administrator_ and copy paste the following: `npm --add-python-to-path install --global --production windows-build-tools`
- If you need to install `windows-build-tools`, see [`Installing Windows Build Tools`](#installing-windows-build-tools).

Clone, build and run Theia.
Using Git Bash as administrator:
Expand All @@ -524,9 +524,13 @@ git clone https://github.com/eclipse-theia/theia.git \
&& yarn browser build \
&& yarn browser start
```

If you do not have Git Bash installed on your system, [get one](https://gitforwindows.org/), or use `scoop`: `scoop install git`.

### Installing Windows Build Tools

- Previously, [`windows-build-tools`](https://github.com/felixrieseberg/windows-build-tools) is required to build Native Nodes modules on Windows. The npm package is now [`deprecated`](https://www.npmjs.com/package/windows-build-tools) because NodeJS installer can now install all the required tools that it needs, including Windows Build Tools.
- In case you need to install the tool manually, after installing `yarn`, run `PowerShell` as _Administrator_ and copy paste the following: `npm --add-python-to-path install --global --production windows-build-tools`.

## Troubleshooting

> First make sure that you follow the steps given in the [docs](https://github.com/eclipse-theia/theia/blob/master/doc/Developing.md#run-the-browser-based-example-applicatio) correctly.
Expand Down

0 comments on commit 95383a9

Please sign in to comment.