Skip to content

Commit

Permalink
changed: updated more dependencies and switched to yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnR committed Nov 2, 2023
1 parent 7726494 commit f2152e6
Show file tree
Hide file tree
Showing 4 changed files with 6,066 additions and 2,667 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ Live demo web application (meant for testing purposes only) that uses Enketo Val

## Prerequisites

1. install nodeJS 16
2. if npm is not version 6, downgrade with `npm i -g npm@6` (but you could check first if still necessary)
1. install nodeJS (20)
2. (if necessary) install build tools for native modules with `apt-get install build-essential`
3. (if necessary) install puppeteer (headless Chrome) prerequisites as mentioned [here](https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#chrome-headless-doesnt-launch-on-unix), e.g. for Ubuntu/Debian do `apt-get install ca-certificates fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils`

Expand Down Expand Up @@ -83,7 +82,7 @@ const result = validator.validate( xformStr, options );
## Develop

1. Clone repo and install [prerequisites](#prerequisites).
2. Run `npm install`. If there is an error the first thing to do is to run `rm -R node_modules` and retry especially after changing Node versions or after earlier crashes during installation.
2. Run `yarn install`. If there is an error the first thing to do is to run `rm -R node_modules` and retry especially after changing Node versions or after earlier crashes during installation.
3. Run via command line, e.g. `./validate test/xform/xpath-fails.xml` or `./validate --help`.

## How it works
Expand Down
Loading

0 comments on commit f2152e6

Please sign in to comment.