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:
I just went into this situation. This is indeed extremely misleading.
It would make sennse the npm version to match the one announced in the release list.
Sorry for the lack of response on this. This was indeed corrected on our 14.04 build image:
$ nvm use 5.0.0; node --version; npm --version
Now using node v5.0.0 (npm v3.3.6)
v5.0.0
3.3.6
$ nvm use 5.1.0; node --version; npm --version
Now using node v5.1.0 (npm v3.3.12)
v5.1.0
3.3.12
It is possible you are using our 12.04 build image, which we will not be updating due to 12.04 being EOL soon. To check which image your build is running on, expland the Start container step of one our your builds.
You can change the build image via the menu in Project settings > Build environment. You’ll need to trigger a new build by pushing a commit once you’ve made this change (just running a ‘rebuild’ will reuse the same build image).