I have been trying to get Gulp.js to work for 3 days and have failed so far. I have now resorted to reinstalling Linux Mint 17.3 from scratch... I want to install Node.JS on my machine and then run Gulp.
On nodejs.org https://nodejs.org/en/download/package-manager/it says:
two versions:
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
and then
sudo apt-get install -y nodejs
How can I know which version to install? For running Gulp cli which is the best way forward?
On many sites I read "do not use apt-get to install Node.JS" They never mention a reason. Apparently, it is better to use NVM (??)
So, can anyone explain it to me? Which version do I install? setup_4? setup_6? Which way to install Node.JS is the best way? apt-get or NVM? and especially WHY?
Thanx,
Thom
do not use apt-get to install Node.JS
In the past the distro packaging was ~~not so good~~ really bad and created problems. Also it was notoriously late in regards of the latest node version available. I m not sure today about apt, but on my fedora 23 i m still getting provided node#0.10. So for me it s a no go.
Apparently, it is better to use NVM
Node Version Manager helps to get setup and running quickly. It also helps you to switch between old/new versions very very quickly. awesome tool for developers.
V4? V6?
Depends of your task and its goal.
For example, you are creating a build chain for front end development, you may go for v6 because only the developers will be impacted by this decision. Its a decision to take with the team.
If you work on a server api, you should choose one in agreement with your sysop team (or force them, depends your context).
You are working on packages to be distributed (cli), go for the LTS v4, it s going to be more stable.
You do not have constraints ? Go for v4 for stability, v6 for the latest features about es6 for example.
hth!!
Related
I want to install 11.x version of Node.js on my Ubuntu sevrer using apt/apt-get, but it always installs version 8.10.x. Is there a way to install the latest 12.x or 11.x version without using nvm?
I've tried apt-get update, purging nodejs, using commands below:
curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
sudo apt-get install -y nodejs
None of above helped. I'm still getting an old verion of Node.js
The implementations of languages provided by operating systems tend to lean towards stability within their particular ecosystem (i.e: they play nice with everything else in the repositories). If you wish to use a newer version I recommend asdf which allows you install multiple versions of implementations of various languages including Node.
I've tried installing different libgmp's from ubuntu app center and I tried installing it manually from http://gmplib.org/#DOWNLOAD but I can't get this to configure it's an old library and I'm trying to run it on the latest version of ubuntu but I didn't think I'd have problems but I'm new to trying to use libraries like this any help would be greatly appreciated.
I've had these kind of errors installing dependencies before, and I realized that you must to force the installation of such pack having it... you didn't mention the version of your Ubuntu, so I'm assuming you're working with 12.10. But if not you always can look up for the version you are running on.
Just download the pack from here, of course, depending on your architecture, and after that run sudo apt-get -f install in order to force the installation of broken packs.
I'm using CentOS 4.8 , i386.
I would appreciate if any one can help me to install Gnome (or any other GUI) while there is no yum available.
I tried to install yum but since It's a company's server with many things installed on it,
I faced with many problems.
However I decided to find a way to install Gnome without using yum
And please take note:
I'm a neophyte!
Did you try getting the source-code and building it manually?
You can get the code from
http://www.gnome.org/getting-gnome/
GNOME also provides a build tool to make the installation easier.
But, as it has already been pointed out - Servers are best managed over command line. It will give you more power and control over what you are doing.
I'm trying to get node.js and npm installed on my Ubuntu 11.10 installation, and I'm having a tricky time. I decided to go the route of downloading and compiling from the latest source because I want to use the new version of node.js - v0.6.0 instead of the older version that the synaptic package manager will install. However, I could not get npm set up correctly with it due to a "module not found" error. I was completely surprised at how little information I was able to find on the error.
Anyways, my goal here is to learn node.js, not to run a production environment. Should I give in and use v4.9 or is it really worth getting the newest version for the sake of learning, even if I have to go through the pain of keeping it updated and configuring it myself?
If you have Ubuntu, install it from Chris Lea's repo, it's always up to date with the last stable version (for ex now the version is 0.6.0 - as of today):
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
Generally, you want to install node from source since the packages you find in package managers are usually out of date. 0.4.12 was the last stable before 0.6.0 that was released a few days ago. 0.4.9 is pretty out of date.
This is a old question, nowadays my preferred way to install node is by using nvm (Node Version Manager). This will allow you to have multiple versions of node installed and quickly switch version.
Installation:
Install C++ compiler
apt-get update
apt-get install build-essential libssl-dev
Install NVM
curl https://raw.githubusercontent.com/creationix/nvm/v0.30.2/install.sh | bash
source ~/.profile
Install node (select which version you want to install)
nvm install 6
Usage:
To set a default node version:
nvm alias default 0.12.7
To select a different installed version:
nvm use 4
I have already installed cassandra in ubuntu using with wiki
Problem is I have no control over which version to install and upgrade to in feature.
I am want to be able to install specific version not just latest, because i have a machine running 0.6.2 now i want a another node and i want to install 0.6.2.
How can i install debian package for specific version instead of latest one?
for installing a specific version of cassandra you can do something like this:
in this case i want to install cassandra 1.2.8
sudo apt-get clean
sudo apt-get update
sudo apt-get install cassandra=1.2.8
The best way to do something like this, that I have found so far is pinning. This is a little inconvenient at the moment because you have to manually create the pinning preferences (and change them if necessary). Also, the pinning will not work with aptitude in case you use this.
Another example is the pinning I have done for php here. However, you have to make sure that whatever version you want to have is available in the repos/ppas that you have configured in your sources.list (sources.list.d).