Immutable solution version
Upgrading NodeJS on SemaphoreCI
Complete solution
Upgrading NodeJS on SemaphoreCI. 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 Use when hitting this exact issue. Not for unrelated errors or different features.
TL;DR
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 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 .
Fix
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 Expected: You get the expected result; the problem is gone.
When to use
- You are dealing with this situation.
- The symptom matches: Upgrading NodeJS on SemaphoreCI.
When NOT to use
- Unrelated issues with a different cause.
- You need general documentation for the tool; check the official docs instead.
Compatibility
Reported per the linked source (mentions 5.5, 5.6, v0.12, v5.5). Source: https://stackoverflow.com/questions/38835918/upgrading-nodejs-on-semaphoreci.
Variant phrasings
Upgrading NodeJS on SemaphoreCI
Why it happens
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.
Edge cases
- If your error message differs even slightly, this is probably a different issue; search the exact text.
- Behavior can change between releases; the linked source reflects the versions above.
- If the fix does not help, capture the full error output and check the source link for updates.
Source
https://stackoverflow.com/questions/38835918/upgrading-nodejs-on-semaphoreci
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 3 · 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>