PhantomJS has a note posted about this–they suggest using a CDN like so: PHANTOMJS_CDNURL=http://cnpmjs.org/downloads npm install phantomjs
I recommend going one step further. Do this in your dependencies phase and then make sure you’re caching the new install with cache_directories in your circle.yml.