Is there any proxy settings?


#84

It is now described in the main ReadMe file of the project - https://github.com/atom/apm

If you are using a HTTP(S) proxy you can configure apm to use it by running:
apm config set https-proxy https://9.0.2.1:0

However if your proxy does not talk https (as it was in my case), make sure you specify (so https traffic goes via http proxy):

apm config set https-proxy http://your.proxy:


#85

Need a little help here. I’m on my WIndows 7 machine in my office and don’t have admin rights.
So I downloaded the Atom ZIP file (not the .EXE installer) and unpacked it in a local folder.
Inside the unzipped folder structure I found the folder atom-x64-windows\Atom x64\resources\app\apm\bin.
However, neither in cmd.exe nor in a Windows 7 PowerShell I’m able to launch/start apm because in that folder there’s no apm.exe binary. Just an apm.cmd.
So: the README on https://github.com/atom/apm is nice – but doesn’t really help until invoking the apm command works. So what’s to do to make it work?


#86

You need to run apm.cmd. There’s no such thing as an apm.exe, because APM, and NPM, and every other Node package, is just a JavaScript script. To see this for yourself, take a look at apm.cmd. It’s all interesting, but this is the important bit:

if exist "%~dp0\node.exe" (
  "%~dp0\node.exe" "%~dp0/../lib/cli.js" %*
) else (
  node.exe "%~dp0/../lib/cli.js" %*
)

We can take a look at that file and we see that it’s very short.

(function() {
  var apm;

  apm = require('./apm-cli');

  process.title = 'apm';

  apm.run(process.argv.slice(2), function(error) {
    return process.exitCode = error != null ? 1 : 0;
  });

}).call(this);

So the whole of APM is a Node module installed behind the scenes and apm.cmd is the user interface intended to be called from the system shell.