Skip to content

Instantly share code, notes, and snippets.

@nickboldt
Created August 21, 2018 18:38
Show Gist options
  • Save nickboldt/fd99ff0649304297acf98d1d2aaace06 to your computer and use it in GitHub Desktop.
Save nickboldt/fd99ff0649304297acf98d1d2aaace06 to your computer and use it in GitHub Desktop.
install phantomjs proxy workaround
# workaround for https://github.com/Medium/phantomjs/issues/806 ?
# workaround for https://github.com/Medium/phantomjs/issues/808#issuecomment-414723230
export http_proxy=http://${buildContentId}+tracking:${accessToken}@${proxyServer}:${proxyPort}
export https_proxy=http://${buildContentId}+tracking:${accessToken}@${proxyServer}:${proxyPort}
mkdir -p /tmp/phantomjs/
pushd /tmp/phantomjs/
# previously mirrored from https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2
# because proxy can't do https. in 2018. ugh.
wget http://download.jboss.org/jbosstools/updates/requirements/node/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
popd
npm install phantomjs-prebuilt
@nickboldt
Copy link
Author

typescrit@latest looks like a typo to me. you sure you don't mean 'typescript@latest ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment