Skip to content

Commit

Permalink
add npm in compilation-windows
Browse files Browse the repository at this point in the history
  • Loading branch information
yazninja committed May 16, 2022
1 parent 1ed5da6 commit b01a1e0
Showing 1 changed file with 32 additions and 12 deletions.
44 changes: 32 additions & 12 deletions compilation/compiling-on-windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,18 @@ If you'd like to update your repository in the future to keep up to date use the
### Installing Dependencies

Now for the fun part, by using yarn or npm (we'll be using yarn in this case) enter the following command to automatically obtain all required dependencies for installation.

```
yarn install
```
{% tabs %}
{% tab title="yarn" %}
```
yarn install
```
{% endtab %}
{% tab title="npm" %}
```
npm install --force
```
{% endtab %}
{% endtabs %}

{% hint style="info" %}
This step could take a little while on some machines.
Expand All @@ -71,14 +79,26 @@ This step could take a little while on some machines.
This step takes a little while on the first compilation so bare with it as it does what it needs to do. 

Compiling Cider for specific CPU architectures is a smart thing to do and you can do it by adding **switches** to the dist argument as displayed.

```
// For x86_64 machines. (Modern PC's)
yarn dist -w --x64
// For x86 ONLY machines. (Legacy PC's)
yarn dist -w --ia32
```
{% tabs %}
{% tab title="yarn" %}
```
// For x86_64 machines. (Modern PC's)
yarn dist -w --x64
// For x86 ONLY machines. (Legacy PC's)
yarn dist -w --ia32
```
{% endtab %}
{% tab title="npm" %}
```
// For x86_64 machines. (Modern PC's)
npm run dist -w --x64
// For x86 ONLY machines. (Legacy PC's)
npm run dist -w --ia32
```
{% endtab %}
{% endtabs %}

{% hint style="warning" %}
On some low-end machines this process could take up to \~5 minutes.
Expand Down

0 comments on commit b01a1e0

Please sign in to comment.