Asked 6 years ago
22 Aug 2017
Views 1107
duglus

duglus posted

How to install node.js in Linux Mint ?


sudo apt-get install -y nodejs


not installing properly nodejs by above command

 
 sudo apt-get install -y nodejs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libc-ares2 libv8-3.14.5
The following NEW packages will be installed:
  libc-ares2 libv8-3.14.5 nodejs
0 upgraded, 3 newly installed, 0 to remove and 552 not upgraded.
Need to get 1,907 kB of archives.
After this operation, 7,538 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libc-ares2 amd64 1.10.0-2ubuntu0.2 [34.1 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ trusty/universe libv8-3.14.5 amd64 3.14.5.8-5ubuntu2 [1,189 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ trusty/universe nodejs amd64 0.10.25~dfsg2-2ubuntu1 [684 kB]
Fetched 1,907 kB in 1min 50s (17.3 kB/s)                                       
Selecting previously unselected package libc-ares2:amd64.
(Reading database ... 163731 files and directories currently installed.)
Preparing to unpack .../libc-ares2_1.10.0-2ubuntu0.2_amd64.deb ...
Unpacking libc-ares2:amd64 (1.10.0-2ubuntu0.2) ...
Selecting previously unselected package libv8-3.14.5.
Preparing to unpack .../libv8-3.14.5_3.14.5.8-5ubuntu2_amd64.deb ...
Unpacking libv8-3.14.5 (3.14.5.8-5ubuntu2) ...
Selecting previously unselected package nodejs.
Preparing to unpack .../nodejs_0.10.25~dfsg2-2ubuntu1_amd64.deb ...
Unpacking nodejs (0.10.25~dfsg2-2ubuntu1) ...
Processing triggers for doc-base (0.10.5) ...
Processing 1 added doc-base file...
Registering documents with scrollkeeper...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up libc-ares2:amd64 (1.10.0-2ubuntu0.2) ...
Setting up libv8-3.14.5 (3.14.5.8-5ubuntu2) ...
Setting up nodejs (0.10.25~dfsg2-2ubuntu1) ...
update-alternatives: using /usr/bin/nodejs to provide /usr/bin/js (js) in auto mode
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...


after downloading and processing so much i ran


node -v 


and i found following result

The program 'node' can be found in the following packages:
 * node
 * nodejs-legacy
Try: sudo apt-get install <selected package>



so need help to install nodejs in linux mint operating system
Post Answer