How to install nodejs version 6 in Linux Mint 18.3 sylvia - node.js

I need to install Nodejs version 6 in Linux Mint 18.3 sylvia.
I already tried running this:
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
But result in errors like:
E: Failed to fetch cdrom://Linux Mint 18.3 _Sylvia_ - Release amd64
20171124/dists/xenial/contrib/binary-i386/Packages Please use apt-
cdrom to make this CD-ROM recognized by APT. apt-get update cannot be
used to add new CD-ROMs
E: Failed to fetch http://ppa.launchpad.net/rabbitvcs/ppa/ubuntu/dists/**DISTRIBUTION**/main/
binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
Error executing command, exiting
Anyone have Idea to install this? Thanks

Installing Node.js is pretty straightforward using Linuxbrew, the Linux port of Homebrew. It handles downloading, unpacking, compiling, and installing Node on your system. After you have Linuxbrew installed, the whole process should only take you a few minutes.
Open up your terminal and type brew install node.
Sit back and wait. Homebrew has to download some files, compile and install them. But that’s it.

try to install the current version
10.15.3 LTS

Related

Linux AWS still looking for uninstalled version of Node and of NPM

I'm fairly new to Linux systems, so sorry if the question is too basic. I am using Amazon Linux 2 AMI.
I had installed version 16.4.2 of NodeJS at the beginning and was giving me compatibilities issues. Hence I tried to uninstall it and then install version 14.15.5 (which was stable on my local dev).
To uninstall the new version, I ran the command sudo yum remove nodejs and it apparently uninstalled NodeJS. Then I installed the old version via first curl -sL https://rpm.nodesource.com/setup_14.x | sudo bash - and then sudo yum install -y nodejs (it said it was successful). But finally I ran the command node -v to only get:
-bash: /home/ec2-user/.nvm/versions/node/v16.4.2/bin/node: No such file or directory
So he's still looking for the version I uninstalled. How can I completely remove the new version and finally get the new version installed, please?
Thanks in advance!
For anybody arriving at this post: after uninstallation, everything I had to do was stopping and rebooting the instance. Then the old version was recognized.
Try exiting and reconnecting to the EC2 instance, it helps everytime. Also, if you haven't already upgraded the nodejs version you can upgrade using this link once done, exit the instance and reconnect, works everytime.

Trying to install Node.js 12 on a Raspberry Pi, somehow ending up with version 10 instead

I'm trying create a bash installation script to install Node.js version 12 on a Raspberry Pi using:
curl -sL https://deb.nodesource.com/setup_12.x | sudo bash -
sudo apt-get install -y nodejs
When the installation is done, however, I check the version with node --version, and I've got v10.24.0 instead.
What would cause this, and how do I stop it from happening?
I'm also finding that npm isn't installed unless I instead do:
sudo apt-get install -y nodejs npm
...and make the installation of npm explicit. This sort of works, but then I get warnings every time I use npm that npm isn't really meant to be used with Node 10.
Am I perhaps missing some prerequisite for version 12, and being automatically downgraded to version 10?
I'm trying to to get this to work with a Raspberry Pi 3B+ with only 1GB RAM. Could that be the issue? My intention was to deliberately install 12 instead of 14 in this installation script if I detect less than 2GB RAM, because I think 14 might require more than 1GB to run reliably. Maybe 1GB is too small for 12 too?
If I try to install again, I get:
pi#raspberry:~ $ sudo apt-get install -y nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
nodejs is already the newest version (10.24.0~dfsg-1~deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Note: For most of my testing, I'm not using a real Raspberry Pi, but a VM with Debian Linux 10.8 and a Raspberry Pi desktop. The problems are the same on the real hardware, however. The VM just makes testing a LOT faster.
Remove the installed version:
sudo apt purge nodejs
Download the tarball from here, extact it then copy it to /usr/local/ (use uname -a the get the exact ARMv* version):
wget https://nodejs.org/dist/v12.9.1/node-v12.9.1-linux-armv7l.tar.xz
unxz node-v12.9.1-linux-armv7l.tar.xz
tar xvf node-v12.9.1-linux-armv7l.tar
cd node-v12.9.1-linux-armv7l/
sudo cp -R * /usr/local/

NodeJS on Windows 10 and Windows Subsystem for Linux

I'm trying to get Expo, a platform for making native mobile apps, to run on a Windows 10 machine. A preprequisite for Expo is NodeJS so I installed that. However, I ran into some issues getting Expo to work using Git Bash and so now I'm trying to get Windows Subsystem for Linux (WSL) operational to use that instead. Ubuntu 18.04 LTS has been downloaded and initialized. Using a CMD here is what's happening:
C:\Users\jason.black>node -v
v12.13.0
C:\Users\jason.black>wsl
jason#PC1:/mnt/c/Users/jason.black$ node -v
Command 'node' not found, but can be installed with:
sudo apt install nodejs
jason#PC1:/mnt/c/Users/jason.black$ sudo apt install nodejs
[sudo] password for jason:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package nodejs
jason#PC1:/mnt/c/Users/jason.black$
So it appears that NodeJS which was initially installed is not available to WSL. Does that seem right? And why won't it install so WSL can access it?
If you're trying to access Node installed on the windows site, you may specify the PATH to /mnt/x/.../path/to/node/bin; if you're trying to install nodejs on the Linux side, may be you're looking for the package 'node' (not nodejs), or you can just download the portable version: https://nodejs.org/dist/v12.13.1/node-v12.13.1-linux-x64.tar.xz
For someone who's not familiar to Linux:
# will be download to home directory
cd ~
# using wget
wget https://nodejs.org/dist/v12.13.1/node-v12.13.1-linux-x64.tar.xz
# using curl
curl -o node-v12.13.1-linux-x64.tar.xz https://nodejs.org/dist/v12.13.1/node-v12.13.1-linux-x64.tar.xz
# extract
tar xf node-v12.13.1-linux-x64.tar.xz

System crash after oracle installation with yum

recently i tried to install oracle on my linux with apt (I never used yum before) using fast manual:
http://www.oracle.com/technetwork/articles/servers-storage-admin/ginnydbinstallonlinux-488779.html
And after command:
sudo yum install oracle-rdbms-server-11gR2-preinstall
I got error:
Failed: ca-certificates.noarch 0:2010.63-3.el6_1.5 chkconfig.x86_64 0:1.3.49.3-2.el6 file-libs.x86_64 0:5.04-15.el6 filesystem.x86_64 0:2.4.30-3.el6
initscripts.x86_64 0:9.03.38-1.0.1.el6_4.2
Complete!
And something gone wrong because command like: ps, top are crashing
login#Ass-K55VJ:/etc/yum/repos.d$ ps -e
ps: relocation error: ps: symbol procps_number_version, version _3_2_5 not defined in file libproc-3.2.8.so with link time reference
login#Ass-K55VJ:/etc/yum/repos.d$ top
Segmentation fault (core dumped)
then I tryied to uninstall oracle and dependencies but after command:
sudo yum remove oracle-rdbms-server-11gR2-preinstall
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.6.6 (r266:84292, Jul 10 2013, 06:42:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)]
If you cannot solve this problem yourself, please go to the yum faq at: http://wiki.linux.duke.edu/YumFaq
So it seems like yum install in my system new libraries but didn't link it correctly? I dont know what do in this moment because it seems like armagedon on my ubuntu...
Does this mean you're on ubuntu and tried to install rpm packages using yum? The manual you used is for Oracle Linux 6, why would you try that on ubuntu?
rpm packages are not compatible with debian based systems like ubuntu, which use deb packages. So you've probably screwed your system big time, overwriting important system libraries with incompatible ones.
If apt-get is still working, then you can try to reinstall (apt-get --reinstall install) the equivalent libraries to the ones mentioned in the install manual you linked to - naming isn't always the same for rpm and deb packages. dpkg -l should help you see which the correct installed libraries are. I'd start with the C libraries (libc) etc.
But if apt-get is screwed also, then you'd need to download the packages manually from an ubuntu mirror and install them using dpkg, but I think a reinstall (or restore from backup if you have one) would be the best option.

Adobe Air native installer Linux - Dependency is not satisfiable

I created native installers for my air application successfully under MacOS and Windows.
With Ubuntu 10 I am able to create a .deb package, but when I launch it opens the Ubuntu software center showing error:
Dependency is not satisfiable: adobeair (>= 2.5.0.0)
I thought native installer should be able to download the proper adobe air version if available (2.5.1 seems available as deb package). If I install air for linux 2.5.1 from adobe website my application launches fine.
Did anyone experience the same issue?
Thanks in advance for any help
Paolo
Unfortunately, many years late "Adobe AIR for Linux is no longer supported." following what adobe page says. Using the "AIR archive" is possible to get unsupported versions, the 2.6.0 version is the most recent available. If you need to install a program that require a newer version of it, you might go to Virtual box with a Windows guest.
For version 2.6.0 the recommend steps for Ubuntu 16.10 are:
for 32bit machine
wget -O adobe-air_i386.deb http://drive.noobslab.com/data/apps/AdobeAir/adobeair_2.6.0.2_i386.deb
sudo dpkg -i adobe-air_i386.deb
sudo apt-get install -f && rm adobe-air_i386.deb
for 64bit machine
wget -O adobe-air_amd64.deb http://drive.noobslab.com/data/apps/AdobeAir/adobeair_2.6.0.2_amd64.deb
sudo dpkg -i adobe-air_amd64.deb
sudo apt-get install -f && rm adobe-air_amd64.deb
The recommend steps for Ubuntu 16.04/14.04/12.04/Linux Mint 18/17/13 (both extracted from here):
wget -O adobe-air.sh http://drive.noobslab.com/data/apps/AdobeAir/adobe-air.sh
chmod +x adobe-air.sh;sudo ./adobe-air.sh
What version of the adobeair package is available from the Ubuntu repositories?
A .deb is just an archive and the dependencies have to be available from the repositories the system is configured to use. It can't resolve the dependency by downloading it from some specific location you know of but the system is not configured to use.
If the needed version of the package is not available from the Ubuntu repositories then your only options are to reconfigure the system to use an additional repository that does have the needed dependency before you try to install your package, or download and manually install the dependency before you try to to install your package.
Try to install itdpkg -i --force-architecture adobeair.deb

Resources