Skip to content
← Back to activity

Immutable solution version

Upgrading NodeJS on SemaphoreCI

Version 1Sign in to save

Complete solution

Semaphore gives you full sudo access, so you can run any linux command as you do in your dev environment, here is example from the Semaphore docs.

Semaphore gives you full sudo access, so you can run any linux command as you do in your dev environment, here is example from the Semaphore docs . Full list of preinstalled versions of NodeJS on Semaphore you can find here . As you can see, there is no 5.5 version on the platform so you need to install and switch to it with following commands as part of your build: nvm install 5.5 nvm use 5.5 If you want to use some version that is already preinstalled you can do that with following command: nvm use 5.6

Context: I'm using NodeJS and running the project through SemaphoreCI . The project works fine on my machine but fails on Semaphore. I suspect that it is because of node version difference (mine is v5.5, Semaphore is using v0.12). Google gave me so many results on how to upgrade my node, but almost all of these need sudo access. I was wondering if anyone had similar issues on Semaphore.

Evidence

Source: I'm using NodeJS and running the project through SemaphoreCI . The project works fine on my machine but fails on Semaphore. I suspect that it is because of node version difference (mine is v5.5, Semaphore is using v0.12). Google gave me so many results on how to upgrade my node, but almost all of these need sudo access. I was wondering if anyone had similar issues on Semaphore.

Verified resolution: Semaphore gives you full sudo access, so you can run any linux command as you do in your dev environment, here is example from the Semaphore docs . Full list of preinstalled versions of NodeJS on Semaphore you can find here . As you can see, there is no 5.5 version on the platform so you need to install and switch to it with following commands as part of your build: nvm install 5.5 nvm use 5.5 If you want to use some version that is already preinstalled you can do that with following command: nvm use 5.6

Source URL: https://stackoverflow.com/questions/38835918/upgrading-nodejs-on-semaphoreci

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_1P-shhP86dXxoz0j6AXPEQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Upgrading NodeJS on SemaphoreCI <span>— Vectle</span></a>