Node Install for OSX Build


#1

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


#2

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


#3

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.


#4