Skip to content

Instantly share code, notes, and snippets.

@Splat
Last active July 8, 2016 21:10
Show Gist options
  • Save Splat/23406be91e3e8286440f33c7bd5fefb7 to your computer and use it in GitHub Desktop.
Save Splat/23406be91e3e8286440f33c7bd5fefb7 to your computer and use it in GitHub Desktop.
Nodejs install on Fedora

Installation of NodeJS in Fedora

I recently had a bit of trouble installing nodejs on my Fedora installation. RPM was having issues installing during the nodejs install process.

The error installing as root is as follows:

+ rpm -i --nosignature --force '/tmp/tmp.3BlR6h6inY'
*error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Inappropriate ioctl for device)*
Error executing command, exiting

To remedy the issue, RPM needed to be pulled and installed manually ahead of time

To download RPM:

wget https://rpm.nodesource.com/pub_5.x/fc/23/x86_64/nodesource-release-fc23-1.noarch.rpm

To install RPM:

rpm -i nodesource-release-fc23-1.noarch.rpm

With RPM installed, nodejs could be installed with the typically recommended script:

curl --silent --location https://rpm.nodesource.com/setup_4.x | bash -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment