# Node Install for OSX Build

**URL:** <https://discuss.circleci.com/t/node-install-for-osx-build/5429>\
**Category:** Build Environment\
**Created:** [July 29, 2016, 6:47pm UTC](https://discuss.circleci.com/t/node-install-for-osx-build/5429 "2016-07-29T18:47:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ekaram](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/ekaram/32/13595_2.png) [@ekaram](https://discuss.circleci.com/u/ekaram)\
**Post date:** [July 29, 2016, 6:47pm UTC](https://discuss.circleci.com/t/node-install-for-osx-build/5429/1 "2016-07-29T18:47:21Z")

</div>

I need Node as part of my build/test process for my iOS mobile app. I was previously manually installing using homebrew, but now am facing this error. Recommendations?

> brew install homebrew/versions/node012==\> Installing node012 from homebrew/versions  
> Error: Cannot install homebrew/versions/node012 because conflicting formulae are installed.

> node: because Differing version of same formula

> Please `brew unlink node` before continuing.

> Unlinking removes a formula’s symlinks from /usr/local. You can  
> link the formula again after the install finishes. You can --force this  
> install, but the build may fail or cause obscure side-effects in the  
> resulting software.

> brew install homebrew/versions/node012 returned exit code 1

> Action failed: brew install homebrew/versions/node012

---

<div class="post-metadata">

**Author:** ![ekaram](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/ekaram/32/13595_2.png) [@ekaram](https://discuss.circleci.com/u/ekaram)\
**Post date:** [July 29, 2016, 6:59pm UTC](https://discuss.circleci.com/t/node-install-for-osx-build/5429/2 "2016-07-29T18:59:26Z")

</div>

Removing the install seemed to work. Is node now a default part of the OSX build environment?

---

<div class="post-metadata">

**Author:** ![nealR](https://avatars.discourse-cdn.com/v4/letter/n/a3d4f5/32.png) [@nealR](https://discuss.circleci.com/u/nealR)\
**Post date:** [August 30, 2016, 9:50am UTC](https://discuss.circleci.com/t/node-install-for-osx-build/5429/3 "2016-08-30T09:50:56Z")

</div>

We’re also getting something similar with our builds. Our circle.yml file for two different projects contains the line ‘brew install node’.

When we build project #1 we get the following output.

_brew install node_  
_==\> Auto-updated Homebrew!_  
_Updated Homebrew from 7395ff2 to 8e29cf1._  
_Updated 2 taps (homebrew/core, homebrew/versions)._  
_ ~~~THINGS UPDATING~~~~~ _  
_Error: node-6.4.0 already installed_  
_To install this version, first `brew unlink node`_

_brew install node returned exit code 1_

_Action failed: brew install node_

When we build project #2 which is meant to be identical, we get.

_brew install node_  
_==\> Auto-updated Homebrew!_  
_Updated Homebrew from 7395ff2 to 8e29cf1._  
_Updated 1 tap (homebrew/versions)._  
_ ~~THINGS UPDATING~~~~~ _  
_Warning: node-6.4.0 already installed_

One project gives a warning and proceeds, the other throws an error and stops. Removing ‘brew install node’ from the failing project works.

---

<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:38am UTC](https://discuss.circleci.com/t/node-install-for-osx-build/5429/4 "2018-06-18T11:38:33Z")

</div>


