From 0bbb4d9bba959d80506cba460f4488db0b789fa8 Mon Sep 17 00:00:00 2001 From: Christian Bundy Date: Thu, 20 Feb 2020 15:43:17 -0800 Subject: [PATCH] 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. --- docs/with-termux.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/with-termux.md b/docs/with-termux.md index 9067b18..775da97 100644 --- a/docs/with-termux.md +++ b/docs/with-termux.md @@ -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 +```