I have a project where I want to use the latest EmberJS to develop under. Currently, node 0.10.4 is installed on the machine I was given, which is a hard requirement for a backend system that I will need. Since the nodejs is so outdated, I cannot install the latest Ember on this machine without updating the NodeJs. My ember app has to communicate to the backend system through socket.io, is it possible to create a virtual development environment on this machine to develop Ember with the latest nodejs and also be able to easily configure the socket.io connection during development?
I believe once Ember is compiled down to distribution files, I can easily migrate these files into the public folder of my outdated nodejs with no problem, but correct me if I'm wrong
Any ideas on a solution that is easy to configure without asking for a new machine?
The easiest way to handle this situation is to use Node Version Manager (NVM). Just follow the install instructions located here.
Then you can simply type nvm install <desired version of node>
.
For example, when developing your backend system, first type nvm install v0.10.4
. And when developing your Ember app, type nvm install v6.0.0
.
(Note: to find out what versions of node are available to download, run nvm ls-remote
).