Remove `--no-optional` to install sodium-native

Problem: I thought `--no-optional` would just ignore our top-level
optional dependencies, but it ends up ignoring deep optionl dependencies
like sodium-native. We really want these dependencies if we can build
them.

Solution: Remove the `--no-optional` suggestion and add a note about
what to do if Sharp doesn't install correctly, which is very likely
since Termux doesn't have libvips available.
This commit is contained in:
Christian Bundy 2020-02-20 15:43:17 -08:00
parent cf1a88e2f7
commit 0bbb4d9bba
1 changed files with 8 additions and 1 deletions

View File

@ -32,7 +32,7 @@ source ~/.profile
npm install -g npm
# Install Oasis
npm --global install --no-optional 'fraction/oasis#semver:*'
npm --global install 'fraction/oasis#semver:*'
```
## Run
@ -42,3 +42,10 @@ Oasis should open in your browser at http://localhost:3000 after you run:
```
oasis
```
If you see an error about Sharp installing incorrectly, delete it and try again.
```
rm -rf node_modules/sharp
oasis
```