The recent container image update includes Node v5.0.0 and v5.1.0. Unfortunately, it looks like we bundled the wrong version of NPM with these Node versions, which results in an error looking like this:
npm ERR! Linux 3.14.28-031428-generic npm ERR! argv "/home/ubuntu/nvm/versions/node/v5.0.0/bin/node" "/home/ubuntu/nvm/versions/node/v5.0.0/bin/npm" "install" npm ERR! node v5.0.0 npm ERR! npm v2.13.5 npm ERR! code EBADPLATFORM
You can fix this by adding something like this to your circle.yml:
dependencies: pre: - npm install -g npm
This will install latest npm
v3.x.y that works with Node v5.
We’ll fix this issue in the future container release.