From 3c812792bb1e0220756107c8056745008306f928 Mon Sep 17 00:00:00 2001 From: dannyrb Date: Tue, 16 Jul 2019 09:55:34 -0400 Subject: [PATCH] Try to use global gitbook-cli --- .netlify/build-deploy-preview.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.netlify/build-deploy-preview.sh b/.netlify/build-deploy-preview.sh index 20562afc4..09fd0b04d 100644 --- a/.netlify/build-deploy-preview.sh +++ b/.netlify/build-deploy-preview.sh @@ -7,6 +7,11 @@ cd "$(dirname "$0")" # Helpful to verify which versions we're using yarn -v node -v +echo 'help ~~~~~~~~~~~~' +npm --help +echo 'root ~~~~~~~~~~~~' +npm root -g +# export PATH=$PATH:/opt # Install GitBook CLI echo 'Installing Gitbook CLI' @@ -24,8 +29,9 @@ for D in *; do # Clear previous output, generate new rm -rf _book - npx gitbook install - npx gitbook build + node gitbook install + node gitbook gitbook build + # /usr/lib/node_modules/gitbook-cli/ cd ..