Ask Your Question

How do I install Atom? [closed]

asked 2015-06-03 21:07:26 -0500

updated 2016-02-13 19:04:10 -0500

mether gravatar image

I am new to Fedora (although I've been using Ubuntu on-and-off for the past three years) and am operating on 32 bit Fedora 22. I have been trying to install Atom (i.e., the text editor) by following this guide (I know it is written for Fed 21, not 22, but it's the best I could find). Although as I noticed that the git repo mentioned in said guide didn't seem to exist (as git clone... kept returning errors to that effect) I used the git repo After I had successfully cloned it into ~/atom I did cd atom and ran script/build to receive this error:

npm v1.4+ is required to build Atom. Version 1.3.6 was detected.

So now I'm left asking how I may install npm v1.4+ in the least number of lines (executed through the terminal). Although if someone has an RPM package for Atom on 32 bit F22 I will be more than happy to use that instead. Keeping in mind I am merely a novice at programming, so please hold back the techy discourse.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by hhlp
close date 2016-10-19 06:55:02.532734


Welcome to ask.fedora. Unlike Ubuntu, Fedora doesn't use fractional version numbers, so what you installed must have been Fedora 22, which has just been released. Checking, I see that the most recent version of npm is 1.3.6-6, so you may have to wait until version 1.4 becomes available. Good luck, and I hope the new version comes out for Fedora RSN!

sideburns gravatar imagesideburns ( 2015-06-04 00:03:31 -0500 )edit

Did you try simply installing the RPM on Atom's home page?

john01dav gravatar imagejohn01dav ( 2015-06-04 04:41:37 -0500 )edit

The RPM on their website is for 64 bit systems.

Brenton Horne gravatar imageBrenton Horne ( 2015-06-04 15:41:35 -0500 )edit

It may be simplest then, to get in touch with the maintainer and ask for a 32 bit RPM.

sideburns gravatar imagesideburns ( 2015-06-04 15:54:21 -0500 )edit

I've sent an email but I'm not holding out much hope for the reply I'm hoping for. I've asked them about their Debian packages before, asking for a 32 bit deb package (as they only have 64 bit packages for Ubuntu too), and they didn't seem all that able to help with that. Fortunately some Atom users had set up a PPA for 32 bit Ubuntu that had the deb package I wanted.

Brenton Horne gravatar imageBrenton Horne ( 2015-06-04 16:50:55 -0500 )edit

4 Answers

Sort by ยป oldest newest most voted

answered 2015-07-01 09:06:25 -0500

updated 2015-07-01 09:12:49 -0500

I discovered the answer to this question. The reason why building Atom from source failed for me was that Node.js and npm were not the version required by Atom (as was pointed out in my original question), so the solution was to get the latest Node.js tarball, extract its contents and follow the installation instructions from there. This solution I have integrated into a revised version of the build instructions at the Atom master GitHub repository that I have uploaded to my own repository on GitHub.

To summarize, installing the latest available version of Node.js (I should mention that this bash script for installing Node.js was inspired by the Node.js official Wiki here) from source code may be achieved by running (from any directory to which you have read & write permissions):

wget -c
tar -xzf node*.tar.gz
cd node*
sudo make install

The v0.12.5 component of this code refers to the fact that at the time I am writing this answer the latest available version of Node.js is version 0.12.5, it should, of course, be updated accordingly when later releases become available. To check for newer releases go here. After running this I just followed the installation instructions for Atom itself, namely running:

sudo script/grunt install

from the Atom directory on my machine (i.e., where the git clone... instruction cloned the master Atom repository to). This solution also appears to work on other Linux distributions, btw, including Debian, openSUSE and Ubuntu.

edit flag offensive delete link more

answered 2015-06-05 01:25:44 -0500

davidva gravatar image

updated 2015-06-05 01:31:39 -0500

Easy, available in Copr... but if you have a 32bit machine, isn't available for you... but you can rebuilt the src.rpm easy...

1) su
2) dnf copr enable helber/atom && dnf -y install atom
edit flag offensive delete link more


Your code gave this error which is repeated whenever I run yum. Failed to synchronize cache for repo 'helber-atom' from '': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried, disabling. Last metadata expiration check performed 0:04:11 ago on Fri Jun 5 17:37:30 2015.

Brenton Horne gravatar imageBrenton Horne ( 2015-06-05 02:43:07 -0500 )edit

@Brenton Horne, because isn't avaible a repository for your 32bits pc... I said you. please read my answer again... here I share a official wiki about How To rebuild a src.rpm. I have not tested if it compiles on a 32-bit PC . If you are a developer consider migrating to 64 bit platforms .

davidva gravatar imagedavidva ( 2015-06-05 10:54:56 -0500 )edit

I followed your guide, running rpmbuild --rebuild on the .src.rpm file and I got this error:

Request for package information failed: getaddrinfo EIO (EIO) error: Bad exit status from /var/tmp/rpm-tmp.us5VQE (%build)

RPM build errors: /home/fusion809/Downloads/atom-0.208.0-1.fc22.src.rpm: Header V3 RSA/SHA1 Signature, key ID f4928260: NOKEY user mockbuild does not exist - using root group mockbuild does not exist - using root user mockbuild does not exist - using root group mockbuild does not exist - using root Bad exit status from /var/tmp/rpm-tmp.us5VQE (%build)

Brenton Horne gravatar imageBrenton Horne ( 2015-06-14 12:40:58 -0500 )edit

answered 2016-10-19 06:54:27 -0500

hhlp gravatar image

a fantastic article about ATOM in Fedora Magazine, and a howto after installing ATOM like plug-ins an themes


edit flag offensive delete link more

answered 2016-02-20 06:59:18 -0500

mosquito gravatar image

updated 2016-02-20 07:03:27 -0500

Please add Rpm repository.

$ dnf copr enable mosquito/atom
$ sudo dnf install atom

I am spiltting Atom package(atom, nodejs-atom-package-manager, electron), If you any question, please tell me.

If you want to build atom from source code(SRPM). please use mock. For example:

  1. Download srpm

  2. Use mock build atom

    $ sudo mock -r fedora-22-i386 --dnf --rebuild atom-1.5.3-2.git3e71894.fc23.src.rpm
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-06-03 21:05:18 -0500

Seen: 11,738 times

Last updated: Oct 19 '16