Installing different versions of nodejs
Per https://nodejs.org/en/download/packa...nux-and-fedora, I am trying to install nodejs version 6 and npm on Centos6.
When I check the version of the installed package, it appears that it is some old version 0.10.46. But if I google "0.10.46-1.el6 nodejs", it appears not to be that old. What version of nodejs have I installed? If old, how do I install a newer version? Thanks Code:
|
Although a package might install one particular version of this JavaScript library (and might uninstall older ones from its appointed location for such things), bear in mind that this library will be used by clients of web sites hosted by this machine ... each client requesting the library from the server through some URL.
And so, there's nothing in this world keeping you from downloading other versions of this library, directly from its authoritative source, and placing these different versions where this-or-that web site will know to find it. (Probably abstracting those locations to the client through the use of Apache <Directory> or <Location> tags.) Also consider carefully how you choose to specify the caching behavior of this (rather large, even when minified) library file. You want to encourage the client browser to cache it, without losing the ability to supersede their cached copy. Note that it is not recommended to attempt to source the library directly from nodejs.org, nor from any other "external" source. You should have copies on the server machine of "anything and everything which this server will be tasked to deliver to a client." - - - Incidentally: this reply applies equally to any host operating system, and/or any web-server software. |
Hi sundialsvcs,
Node.js is a little (make that a lot) different than tradition JavaScript. Particularly, it is executed by the server and not the web browser client, and it is not a single file called Node.js, but that is the name of the entire environment. Thanks |
All times are GMT -5. The time now is 04:03 AM. |