node.js - Upgrading NodeJS on SemaphoreCI -


i'm using nodejs , running project through semaphoreci. project works fine on machine fails on semaphore. suspect because of node version difference (mine v5.5, semaphore using v0.12).

google gave me so many results on how upgrade node, of these need sudo access. wondering if had similar issues on semaphore.

semaphore gives full sudo access, can run linux command in dev environment, here example the semaphore docs.

full list of preinstalled versions of nodejs on semaphore can find here. can see, there no 5.5 version on platform need install , switch following commands part of build:

nvm install 5.5 nvm use 5.5 

if want use version preinstalled can following command:

nvm use 5.6 

Comments