Skip to content

Commit a6edf66

Browse files
committed
Fix order of fetch-develop-deps / npm install
It's possible this git fixed in the CI scripts but not the README. Running `npm install` undoes the npm linking, so this needs to be run before fetch-develop-deps.
1 parent d0080b4 commit a6edf66

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎README.md‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,18 @@ to build.
6868
is at least v5.x).
6969
1. Clone the repo: `git clone https://github.com/vector-im/riot-web.git`.
7070
1. Switch to the riot-web directory: `cd riot-web`.
71+
1. Install the prerequisites: `npm install`.
7172
1. If you're using the `develop` branch then it is recommended to set up a proper
7273
development environment ("Setting up a dev environment" below) however one can
7374
install the develop versions of the dependencies instead:
7475
```bash
7576
scripts/fetch-develop.deps.sh
7677
```
78+
Note that running `npm install` will undo the symlinks put in place by
79+
`scripts/fetch-develop.deps.sh` so you should run `npm install` first, or
80+
run `npm link matrix-js-sdk` and `npm link matrix-react-sdk` after running
81+
`npm install`.
82+
7783
Whenever you git pull on riot-web you will also probably need to force an update
7884
to these dependencies - the simplest way is to re-run the script, but you can also
7985
manually update and rebuild them:
@@ -93,7 +99,6 @@ to build.
9399
Or just use https://riot.im/develop - the continuous integration release of the
94100
develop branch. (Note that we don't reference the develop versions in git directly
95101
due to https://github.com/npm/npm/issues/3055.)
96-
1. Install the prerequisites: `npm install`.
97102
1. Configure the app by copying `config.sample.json` to `config.json` and
98103
modifying it (see below for details).
99104
1. `npm run dist` to build a tarball to deploy. Untaring this file will give

0 commit comments

Comments
 (0)