Problem with "apm"


#1

i just reinstalled atom by removing all these files:

============

  1. ~/.atom
  2. /usr/local/bin/atom
  3. /usr/local/bin/apm
  4. /Applications/Atom.app
  5. ~/Library/Preferences/com.github.atom.plist
  6. ~/Library/Application Support/com.github.atom.ShipIt
  7. ~/Library/Application Support/Atom
  8. ~/Library/Saved Application State/com.github.atom.savedState
  9. ~/Library/Caches/com.github.atom
  10. ~/Library/Caches/Atom
    ===================

and i installed a fresh one, and now i cant install any package or theme it gives me this error:

==================
Fetching featured packages failed.
/Applications/Atom.app/Contents/Resources/app/apm/bin/apm: line 28: 37512 Killed: 9 "$binDir/$nodeBin" --harmony_collections "$binDir/../lib/cli.js" "$@"

I dont know what to do


#2
  1. Did you completely exit Atom before you started deleting all these files?
  2. Have you restarted your machine?
  3. Have you launched Atom before you tried running apm?

Have you followed the suggestions in the Debugging document? Also, could you give the following information?

  • Which version of Atom are you using?
  • What OS and version are you running?
  • Can you reproduce the issue after completely exiting Atom and restarting using atom --safe?

#3

I did exit atom before deleting all the files, and I restarted my machine after that, and yes I launched atom and ran apm .
I’m using El Capitan 10.11.9 and latest version of atom


#4

I assume you mean OS X v10.11.6? Also, please give the exact version number of Atom. There are, at any one time, three different “latest versions” of Atom.


#5

Sorry my OS X version is 10.11.2 and my Atom version is 1.9.8


#6

What happens when you run apm from the terminal?


#7

zardashts-macbook-pro:~ ZardashtKaya$ apm
/usr/local/bin/apm: line 28: 2467 Killed: 9 "$binDir/$nodeBin" --harmony_collections "$binDir/../lib/cli.js" "$@"


#8

That’s really strange. I have no idea what would be causing that.

  • Where do you have Atom installed?
  • Is your user an Administrator on your machine?
  • What was the reason you reinstalled Atom in the first place?

#9

That spontaneous kill -9 is alarming. Could that be OOM (out-of-memory) killer? How much RAM and swap space do you have?

Try watching the amount of free RAM in real time until it crashes like this. I’m not sure it should be that silent though, I hear OS X handles out-of-memory condition quite gracefully, with warnings, etc.