CircleCI ignores the version of node specified in circle.yml

My circle.yml set to install the current stable version of node for CircleCI Docs

 machine: node: version: 4.2.2 

However, Circle seems to ignore this and use the default default pre-installed node version. Among my error messages:

 npm ERR! node v0.10.33 npm ERR! npm v2.13.5 

How to make CircleCI use the version of node specified in this configuration file?

+7
continuous-integration circleci
source share
2 answers

You can only select the version previously installed in the OS. node 4.2.6 is now the default version for Ubuntu 14.

Ubuntu 14 has: https://circleci.com/docs/build-image-trusty/#nodejs

Ubuntu 12 has: https://circleci.com/docs/build-image-precise/#nodejs

+11
source share

I'm not sure what exactly I fixed, but here is my current working CircleCI config. Note For old Ubuntu, a new compiler is required to run the current stable version of node .

 machine: node: version: 4.2.2 # From for occasional ELIFECYCLE errors compiling microtime # https://discuss.circleci.com/t/using-node-js-4-0-on-circleci/26 dependencies: pre: - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test && sudo apt-get update - sudo apt-get install -y gcc-4.9 g++-4.9 - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 10 - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 10 - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 20 - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 20 # Circle uses npm v2 by default - npm install -g npm@3.x.x 
+1
source share

All Articles