# Add PhantomJS 2.1.1 to the platform

**URL:** <https://discuss.circleci.com/t/add-phantomjs-2-1-1-to-the-platform/1755>\
**Category:** Build Environment\
**Created:** [January 26, 2016, 4:17pm UTC](https://discuss.circleci.com/t/add-phantomjs-2-1-1-to-the-platform/1755 "2016-01-26T16:17:15Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![johncalvinyoung](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/johncalvinyoung/32/1262_2.png) [@johncalvinyoung](https://discuss.circleci.com/u/johncalvinyoung)\
**Post date:** [January 26, 2016, 4:17pm UTC](https://discuss.circleci.com/t/add-phantomjs-2-1-1-to-the-platform/1755/1 "2016-01-26T16:17:15Z")

</div>

It would be nice to have PhantomJS 2.1.1 installed and available in some form, so we do not have to install it manually.

---

<div class="post-metadata">

**Author:** ![jrr](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/jrr/32/23551_2.png) [@jrr](https://discuss.circleci.com/u/jrr)\
**Post date:** [January 27, 2016, 9:41pm UTC](https://discuss.circleci.com/t/add-phantomjs-2-1-1-to-the-platform/1755/2 "2016-01-27T21:41:55Z")

</div>

For reference, for PhantomJS 2.0, CircleCI provided a dynamically-linked build hosted on AWS:

> [@How to use PhantomJS 2.0](https://discuss.circleci.com/t/how-to-use-phantomjs-2-0/405):
>
> The docs would indicate that following is more than sufficient for running 2.0 The below is using the Travis distribution which is a temporary build TravisCI created to support phantom on linux machines. machine: node: version: 4.1.1 pre: - curl -k -L -o phantomjs.tar.bz2 https://s3.amazonaws.com/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 - tar -jxf phantomjs.tar.bz2 But this leads to 1.9.8 still being used. I’ve tried various means of extracting it into a specif…

For now, using the official release PhantomJS 2.1.1 static build seems to work just fine.

---

<div class="post-metadata">

**Author:** ![kimh](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/kimh/32/19_2.png) [@kimh](https://discuss.circleci.com/u/kimh)\
**Post date:** [January 28, 2016, 8:58am UTC](https://discuss.circleci.com/t/add-phantomjs-2-1-1-to-the-platform/1755/3 "2016-01-28T08:58:02Z")

</div>

We can update to 2.1.1 later but here is the circle.yml for people who wants to try the new version.

```auto
machine:
  pre:
    - sudo curl --output /usr/local/bin/phantomjs https://s3.amazonaws.com/circle-downloads/phantomjs-2.1.1

```

---

<div class="post-metadata">

**Author:** ![johncalvinyoung](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/johncalvinyoung/32/1262_2.png) [@johncalvinyoung](https://discuss.circleci.com/u/johncalvinyoung)\
**Post date:** [January 28, 2016, 3:08pm UTC](https://discuss.circleci.com/t/add-phantomjs-2-1-1-to-the-platform/1755/4 "2016-01-28T15:08:00Z")

</div>

Thanks! That’s much simpler than my roundabout method for getting and using the official static build.

---

<div class="post-metadata">

**Author:** ![jrr](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/jrr/32/23551_2.png) [@jrr](https://discuss.circleci.com/u/jrr)\
**Post date:** [January 28, 2016, 4:58pm UTC](https://discuss.circleci.com/t/add-phantomjs-2-1-1-to-the-platform/1755/5 "2016-01-28T16:58:24Z")

</div>

Thanks, kimh! Now I don’t have to figure out where to host a binary.

---

<div class="post-metadata">

**Author:** ![key88sf](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/key88sf/32/9271_2.png) [@key88sf](https://discuss.circleci.com/u/key88sf)\
**Post date:** [July 18, 2016, 6:13pm UTC](https://discuss.circleci.com/t/add-phantomjs-2-1-1-to-the-platform/1755/6 "2016-07-18T18:13:58Z")

</div>

Given that it’s been more than 6 months since this reply, is CircleCI going to actually upgrade the default PhantomJS to 2.1.1 or not? Would like to see that before manually editing our Yaml file again.

Thanks!

---

<div class="post-metadata">

**Author:** ![davetron5000](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/davetron5000/32/13821_2.png) [@davetron5000](https://discuss.circleci.com/u/davetron5000)\
**Post date:** [September 7, 2016, 10:28pm UTC](https://discuss.circleci.com/t/add-phantomjs-2-1-1-to-the-platform/1755/7 "2016-09-07T22:28:15Z")

</div>

Want to bring this up again. Is there any chance we can get this set up? We are using the workaround above, it’s incredibly flaky. Randomly doesn’t work, requiring rebuild without cache. I’m sympathetic to managing this stuff in a general way, but some feedback on what the issues are or if it’s being worked on or what would be welcome.

---

<div class="post-metadata">

**Author:** ![ivdma](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/ivdma/32/13865_2.png) [@ivdma](https://discuss.circleci.com/u/ivdma)\
**Post date:** [September 13, 2016, 10:23am UTC](https://discuss.circleci.com/t/add-phantomjs-2-1-1-to-the-platform/1755/8 "2016-09-13T10:23:48Z")

</div>

Thanks for the script, but when you will include it by default?

---

<div class="post-metadata">

**Author:** ![jeremyjs](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/jeremyjs/32/4832_2.png) [@jeremyjs](https://discuss.circleci.com/u/jeremyjs)\
**Post date:** [September 25, 2016, 11:13am UTC](https://discuss.circleci.com/t/add-phantomjs-2-1-1-to-the-platform/1755/9 "2016-09-25T11:13:26Z")

</div>

+1 to this, my team would really benefit as well.

---

<div class="post-metadata">

**Author:** ![iamtheschmitzer](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/iamtheschmitzer/32/13556_2.png) [@iamtheschmitzer](https://discuss.circleci.com/u/iamtheschmitzer)\
**Post date:** [September 29, 2016, 4:48pm UTC](https://discuss.circleci.com/t/add-phantomjs-2-1-1-to-the-platform/1755/10 "2016-09-29T16:48:29Z")

</div>

+1 installing phantomjs is unreliable, casing semi-regular errors for us, see [Intermittent phantomjs error during build](https://discuss.circleci.com/t/intermittent-phantomjs-error-during-build/6105)

---

<div class="post-metadata">

**Author:** ![key88sf](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/key88sf/32/9271_2.png) [@key88sf](https://discuss.circleci.com/u/key88sf)\
**Post date:** [October 7, 2016, 7:13pm UTC](https://discuss.circleci.com/t/add-phantomjs-2-1-1-to-the-platform/1755/11 "2016-10-07T19:13:23Z")

</div>

@kimh When are you guys going to update to 2.1.1 ?

---

<div class="post-metadata">

**Author:** ![kimh](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/kimh/32/19_2.png) [@kimh](https://discuss.circleci.com/u/kimh)\
**Post date:** [October 10, 2016, 2:50am UTC](https://discuss.circleci.com/t/add-phantomjs-2-1-1-to-the-platform/1755/12 "2016-10-10T02:50:13Z")

</div>

We are sunsetting Ubuntu 12.04 (Precise) build image. Could you please use Ubuntu 14.04 (Trusty) build image where the [default phantomjs is 2.1.1](https://circleci.com/docs/build-image-trusty/#phantomjs) ?

---

<div class="post-metadata">

**Author:** ![key88sf](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/key88sf/32/9271_2.png) [@key88sf](https://discuss.circleci.com/u/key88sf)\
**Post date:** [October 17, 2016, 8:26pm UTC](https://discuss.circleci.com/t/add-phantomjs-2-1-1-to-the-platform/1755/13 "2016-10-17T20:26:32Z")

</div>

Cool will give that a try. Thanks!

---

<div class="post-metadata">

**Author:** ![ccmcbeck](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/ccmcbeck/32/14449_2.png) [@ccmcbeck](https://discuss.circleci.com/u/ccmcbeck)\
**Post date:** [October 20, 2016, 6:08pm UTC](https://discuss.circleci.com/t/add-phantomjs-2-1-1-to-the-platform/1755/14 "2016-10-20T18:08:23Z")

</div>

Any feedback on using Trusty?

---

<div class="post-metadata">

**Author:** ![key88sf](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/key88sf/32/9271_2.png) [@key88sf](https://discuss.circleci.com/u/key88sf)\
**Post date:** [October 20, 2016, 6:39pm UTC](https://discuss.circleci.com/t/add-phantomjs-2-1-1-to-the-platform/1755/15 "2016-10-20T18:39:52Z")

</div>

Yeah seems to work 🙂 Had a few issues with Redis, but got those solved as well.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:37am UTC](https://discuss.circleci.com/t/add-phantomjs-2-1-1-to-the-platform/1755/16 "2018-06-18T11:37:57Z")

</div>


