node.js - How to use node v0.10.5 runtime for Cloud9 IDE? -
i have installed cloud9 ide node v0.6.19. default node installed v0.11.5.
when start simple script cloud9 (with node v0.6.19) uses version of node started cloud9 ide (v0.6.19).
console.log('version: ' + process.version);
logs v0.6.19
is there way can use different version of node? want use v0.11.5 application , v0.6.19 cloud9 ide.
i'm using cloud9 ide on https://c9.io/. wanted change version of node , found page, none of instructions helped. i'm posting solution future googler's.
cloud9 has nvm
node version manager pre-installed. these steps used change version of node runs when click "run" file.
$ mkdir /home/ubuntu/.nvm/versions $ nvm install 0.12.0 $ nvm alias default 0.12.0
why mkdir? because nvm support "rudimentary". anyway, that's worked me.
you can confirm adding server.js
file:
console.log("node version: " + process.version)
hope helps somebody.
Comments
Post a Comment