Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Unable to upgrade some packages #255

Closed
jackmaney opened this issue Jan 14, 2015 · 38 comments · Fixed by #280
Closed

Unable to upgrade some packages #255

jackmaney opened this issue Jan 14, 2015 · 38 comments · Fixed by #280
Assignees
Labels

Comments

@jackmaney
Copy link

This is a long-overdue follow-up from this issue, which is being brought up here by @kevinsawicki's request. Note that the current error messages are a bit different from the above linked issue.

I'm using OSX 10.9.5 with Atom 0.172.0.

$ apm --version
apm  0.119.0
npm  1.4.4
node 0.10.35
python 2.7.9
git 2.2.1

I'm also behind a corporate proxy.

$ cat ~/.atom/.apmrc
https-proxy = http://[user]:[proxy]@[host]:[port]
http-proxy = http://[user]:[proxy]@[host]:[port]
proxy = http://[user]:[proxy]@[host]:[port]
strict-ssl = false

(Note that I'm routing https through http, as per this comment.)

$ cat ~/.npmrc
https-proxy=http://[user]:[proxy]@[host]:[port]
http-proxy=http://[user]:[proxy]@[host]:[port]
proxy=http://[user]:[proxy]@[host]:[port]
strict-ssl=false
registry=http://registry.npmjs.org/

I am able to view updatable packages in Atom via Packages > Updates. I am able to update all of my installed packages except for:

  • Atom Lint
  • Autocomplete Plus
  • Linter
  • Markdown Preview Plus
  • Minimap

Whenever I try to upgrade any of them, I get a stack trace isomorphic to the following (which is the stack trace from trying to update Atom Lint):

npm http GET https://registry.npmjs.org/fs-plus
npm http GET https://registry.npmjs.org/season
npm http GET https://registry.npmjs.org/emissary
npm http GET https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/color
npm http GET https://registry.npmjs.org/xml2js
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/lodash
npm http 304 https://registry.npmjs.org/fs-plus
npm http 304 https://registry.npmjs.org/emissary
npm http 304 https://registry.npmjs.org/xml2js
npm http 304 https://registry.npmjs.org/season
npm http 304 https://registry.npmjs.org/color
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/underscore-plus
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/coffee-script
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/mixto
npm http GET https://registry.npmjs.org/property-accessors
npm http GET https://registry.npmjs.org/color-string
npm http GET https://registry.npmjs.org/color-convert
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/sigmund
npm http GET https://registry.npmjs.org/sax
npm http GET https://registry.npmjs.org/xmlbuilder
npm ERR! git fetch -a origin (https://github.com/Benvie/harmony-collections.git) fatal: unable to access 'https://github.com/Benvie/harmony-collections.git/': Failed connect to github.com:443; Connection refused
npm ERR! Error: Command failed: fatal: unable to access 'https://github.com/Benvie/harmony-collections.git/': Failed connect to github.com:443; Connection refused
npm ERR! 
npm ERR!     at ChildProcess.exithandler (child_process.js:658:15)
npm ERR!     at ChildProcess.emit (events.js:98:17)
npm ERR!     at maybeClose (child_process.js:766:16)
npm ERR!     at Socket.<anonymous> (child_process.js:979:11)
npm ERR!     at Socket.emit (events.js:95:17)
npm ERR!     at Pipe.close (net.js:466:12)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.4.0
npm ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/.apmrc" "--userconfig" "/Users/<username>/.atom/.apmrc" "install" "/Users/<username>/.atom/.node-gyp/.atom/.apm/atom-lint/0.20.1/package.tgz" "--target=0.20.0" "--arch=x64"
npm ERR! cwd /private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/apm-install-dir-115014-3749-se8njm
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.4
npm ERR! code 128
npm ERR! Error: ENOENT, lstat '/private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/apm-install-dir-115014-3749-se8njm/node_modules/atom-lint/node_modules/lodash/dist/lodash.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.4.0
npm ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/.apmrc" "--userconfig" "/Users/<username>/.atom/.apmrc" "install" "/Users/<username>/.atom/.node-gyp/.atom/.apm/atom-lint/0.20.1/package.tgz" "--target=0.20.0" "--arch=x64"
npm ERR! cwd /private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/apm-install-dir-115014-3749-se8njm
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.4
npm ERR! path /private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/apm-install-dir-115014-3749-se8njm/node_modules/atom-lint/node_modules/lodash/dist/lodash.js
npm ERR! fstream_path /private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/apm-install-dir-115014-3749-se8njm/node_modules/atom-lint/node_modules/lodash/dist/lodash.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:108:15)
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/coffee-script
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/underscore-plus
npm http 304 https://registry.npmjs.org/lru-cache
npm http 304 https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/sax
npm http 304 https://registry.npmjs.org/xmlbuilder
npm http 304 https://registry.npmjs.org/color-string
npm http 304 https://registry.npmjs.org/property-accessors
npm http 304 https://registry.npmjs.org/mixto
npm http 304 https://registry.npmjs.org/color-convert
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/wordwrap
npm http GET https://registry.npmjs.org/lodash-node
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/wordwrap
npm http 304 https://registry.npmjs.org/lodash-node
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/apm-install-dir-115014-3749-se8njm/npm-debug.log
npm ERR! not ok code 0

Things to note:

  • I also get this error message if I try to install these packages via apm on the command line.
  • The log file /private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/apm-install-dir-115014-3749-se8njm/npm-debug.log doesn't exist in my file system.
  • A git clone https://github.com/Benvie/harmony-collections.git goes through with no problems whatsoever. Likewise, sudo npm install harmony-collections -g works just fine.

At this point, I'm plum out of ideas. Any help would be greatly appreciated. Thank you for your time.

@kevinsawicki
Copy link
Contributor

This seems similar to npm/npm#3559

@kevinsawicki
Copy link
Contributor

It would be good to know if you can npm install that same library and if so, what version of npm does it succeed in.

npm is currently being upgraded in #252 so it might be possible that this is already on the way to being fixed.

@jackmaney
Copy link
Author

npm install which library? I can install harmony-collections (via a sudo npm install harmony-collections -g) with no problems.

@kevinsawicki
Copy link
Contributor

What about npm install git+https://github.com/Benvie/harmony-collections.git ?

@jackmaney
Copy link
Author

That works fine, as well.

@kevinsawicki
Copy link
Contributor

And just to see, what version of npm are you using?

@jackmaney
Copy link
Author

$ npm --version
2.1.18

@kevinsawicki
Copy link
Contributor

Hmm, okay, I wonder if going 1.4 ➡️ 2.0 of npm will fix this. That is being done in #252

@jackmaney
Copy link
Author

Hmmm, I'm not so sure. I set up a separate installation of npm 1.4.28, and I could still install harmony-collections:

~/npm_test/node_modules/.bin $ ./npm --version
1.4.28
~/npm_test/node_modules/.bin $ ./npm install git+https://github.com/Benvie/harmony-collections.git
harmony-collections@0.3.7 ../harmony-collections
~/npm_test/node_modules/.bin $ cd..
~/npm_test/node_modules $ ll
total 0
drwxr-xr-x   5 <username>  staff   170B Jan 14 16:38 ./
drwxr-xr-x   3 <username>  staff   102B Jan 14 16:36 ../
drwxr-xr-x   3 <username>  staff   102B Jan 14 16:32 .bin/
drwxr-xr-x   7 <username>  staff   238B Jan 14 16:38 harmony-collections/
drwxr-xr-x  24 <username>  staff   816B Jan 14 16:32 npm/
~/npm_test/node_modules $

@kevinsawicki
Copy link
Contributor

Can you verify it installs when referenced as a dependency in a module's package.json file?

Something like:

  • npm init
  • Add "dependencies": { "harmony-collections": "git+https://github.com/Benvie/harmony-collections.git#e81b4b808359e2def9eeeabfdee69c2989e1fe96" } to the package.json file
  • npm install

@jackmaney
Copy link
Author

It worked with npm 2.1.18:

~/blarg $ cat package.json
{
  "name": "blarg",
  "version": "1.0.0",
  "description": "blarg",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "dependencies": {
    "harmony-collections": "git+https://github.com/Benvie/harmony-collections.git#e81b4b808359e2def9eeeabfdee69c2989e1fe96"
  },
  "author": "",
  "license": "ISC"
}
~/blarg $ npm install
npm WARN package.json blarg@1.0.0 No repository field.
npm WARN package.json blarg@1.0.0 No README data
harmony-collections@0.3.7 node_modules/harmony-collections
~/blarg $ ll node_modules/
total 0
drwxr-xr-x  3 <username>  staff   102B Jan 14 16:51 ./
drwxr-xr-x  4 <username>  staff   136B Jan 14 16:51 ../
drwxr-xr-x  7 <username>  staff   238B Jan 14 16:51 harmony-collections/
~/blarg $

And it worked with npm 1.4.28:

$ rm -rf ./node_modules
~/blarg $ ../npm_test/node_modules/.bin/npm --version
1.4.28
~/blarg $ ../npm_test/node_modules/.bin/npm install
npm WARN package.json blarg@1.0.0 No repository field.
npm WARN package.json blarg@1.0.0 No README data
harmony-collections@0.3.7 node_modules/harmony-collections
~/blarg $ ll node_modules/
total 0
drwxr-xr-x  3 <username>  staff   102B Jan 14 16:53 ./
drwxr-xr-x  4 <username>  staff   136B Jan 14 16:53 ../
drwxr-xr-x  7 <username>  staff   238B Jan 14 16:53 harmony-collections/
~/blarg $

@kevinsawicki
Copy link
Contributor

Could you try npm 1.4.4? That is what apm currently uses.

@jackmaney
Copy link
Author

No dice. 😒

~/blarg $ cd ../npm_test/
~/npm_test $ rm -rf node_modules/
~/npm_test $ npm install npm@1.4.4
npm WARN engine npm@1.4.4: wanted: {"node":">=0.8","npm":"1"} (current: {"node":"0.10.35","npm":"2.1.18"})
npm WARN package.json github-url-from-git@1.1.1 No repository field.
npm@1.4.4 node_modules/npm
└── normalize-package-data@1.0.3 (github-url-from-username-repo@1.0.2, github-url-from-git@1.4.0, semver@4.2.0)
~/npm_test $ ./node_modules/.bin/npm --version
1.4.4
~/npm_test $ cd ../blarg
~/blarg $ ll
total 8
drwxr-xr-x    4 <username>  staff   136B Jan 14 16:53 ./
drwxr-xr-x+ 129 <username>  staff   4.3K Jan 14 16:51 ../
drwxr-xr-x    3 <username>  staff   102B Jan 14 16:53 node_modules/
-rw-r--r--    1 <username>  staff   355B Jan 14 16:51 package.json
~/blarg $ rm -rf node_modules
~/blarg $ ../npm_test/node_modules/.bin/npm install
npm WARN package.json blarg@1.0.0 No repository field.
npm WARN package.json blarg@1.0.0 No README data
harmony-collections@0.3.7 node_modules/harmony-collections
~/blarg $ ll node_modules/
total 0
drwxr-xr-x  3 <username>  staff   102B Jan 14 17:01 ./
drwxr-xr-x  4 <username>  staff   136B Jan 14 17:01 ../
drwxr-xr-x  7 <username>  staff   238B Jan 14 17:01 harmony-collections/

@jackmaney
Copy link
Author

Thank you for your efforts in helping me with this (the 😒 up there wasn't directed at you).

The issue persists (for the same five packages) after upgrading Atom to 0.174.0. Is there an ETA on when #252 will make it into a release?

@kevinsawicki
Copy link
Contributor

@jackmaney It should be in the next release, 0.175

@jackmaney
Copy link
Author

Excellent. Once the release is made, I'll let you know if the issue persists.

Thanks!

@jackmaney
Copy link
Author

I'm also getting errors when trying to upgrade the following packages:

  • Color Picker (1.3.0 -> 1.4.0)
  • Linter Clang (2.10.0 -> 2.15.0)

For Color Picker, I get prettymuch the same stack trace as above (unable to get the harmony-collections repo). For the Clang linter, though, I'm getting a different stack trace:

npm ERR! git clone git://github.com/wanderer2/clang-flags.git Cloning into bare repository '/Users/<username>/.atom/.node-gyp/.atom/.apm/_git-remotes/git-github-com-wanderer2-clang-flags-git-6d0aa0dc'...
npm ERR! git clone git://github.com/wanderer2/clang-flags.git fatal: unable to connect to github.com:
npm ERR! git clone git://github.com/wanderer2/clang-flags.git github.com[0: 192.30.252.130]: errno=Connection refused
npm ERR! Error: Command failed: Cloning into bare repository '/Users/<username>/.atom/.node-gyp/.atom/.apm/_git-remotes/git-github-com-wanderer2-clang-flags-git-6d0aa0dc'...
npm ERR! fatal: unable to connect to github.com:
npm ERR! github.com[0: 192.30.252.130]: errno=Connection refused
npm ERR! 
npm ERR! 
npm ERR!     at ChildProcess.exithandler (child_process.js:658:15)
npm ERR!     at ChildProcess.emit (events.js:98:17)
npm ERR!     at maybeClose (child_process.js:766:16)
npm ERR!     at Socket.<anonymous> (child_process.js:979:11)
npm ERR!     at Socket.emit (events.js:95:17)
npm ERR!     at Pipe.close (net.js:466:12)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Darwin 13.4.0
npm ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/.apmrc" "--userconfig" "/Users/<username>/.atom/.apmrc" "install" "/Users/<username>/.atom/.node-gyp/.atom/.apm/linter-clang/2.15.0/package.tgz" "--target=0.20.0" "--arch=x64"
npm ERR! cwd /private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/apm-install-dir-115020-1299-myrjqu
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.4
npm ERR! code 128
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/apm-install-dir-115020-1299-myrjqu/npm-debug.log
npm ERR! not ok code 0

I can clone git://github.com/wanderer2/clang-flags.git from the command line. Also, sudo npm install clang-flags -g works, as does making a dummy module with "dependencies": {"clang-flags": "git://github.com/wanderer2/clang-flags.git"} tacked onto the package.json and running npm install.

@jackmaney
Copy link
Author

I've upgraded to Atom 0.175.0. Upgrading Color Picker worked just fine, but upgrades of the following packages failed:

  • Atom Lint
  • Autocomplete Plus
  • Linter
  • Linter Clang
  • Markdown Preview Plus
  • Minimap

Here is the (now shorter) stack trace that I get when trying to update Atom Lint:

npm ERR! git fetch -a origin (https://github.com/Benvie/harmony-collections.git) fatal: unable to access 'https://github.com/Benvie/harmony-collections.git/': Failed connect to github.com:443; Connection refused
npm ERR! Darwin 13.4.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Applications/Atom.app/Contents/Resources/app/apm/.apmrc" "--userconfig" "/Users/<username>/.atom/.apmrc" "install" "/private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/d-115021-6421-5mp8ps/package.tgz" "--target=0.20.0" "--arch=x64"
npm ERR! node v0.10.35
npm ERR! npm  v2.1.18
npm ERR! code 128

npm ERR! Command failed: fatal: unable to access 'https://github.com/Benvie/harmony-collections.git/': Failed connect to github.com:443; Connection refused
npm ERR! 
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/apm-install-dir-115021-6421-175cw6v/npm-debug.log

The same harmony-collections issue persists for all of the above modules except Linter Clang, which has this stack trace:

npm ERR! git clone git://github.com/wanderer2/clang-flags.git Cloning into bare repository '/Users/dt203199/.atom/.node-gyp/.atom/.apm/_git-remotes/git-github-com-wanderer2-clang-flags-git-6d0aa0dc'...
npm ERR! git clone git://github.com/wanderer2/clang-flags.git fatal: unable to connect to github.com:
npm ERR! git clone git://github.com/wanderer2/clang-flags.git github.com[0: 192.30.252.128]: errno=Connection refused
npm ERR! Darwin 13.4.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Applications/Atom.app/Contents/Resources/app/apm/.apmrc" "--userconfig" "/Users/dt203199/.atom/.apmrc" "install" "/private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/d-115021-6453-cbljky/package.tgz" "--target=0.20.0" "--arch=x64"
npm ERR! node v0.10.35
npm ERR! npm  v2.1.18
npm ERR! code 128

npm ERR! Command failed: Cloning into bare repository '/Users/dt203199/.atom/.node-gyp/.atom/.apm/_git-remotes/git-github-com-wanderer2-clang-flags-git-6d0aa0dc'...
npm ERR! fatal: unable to connect to github.com:
npm ERR! github.com[0: 192.30.252.128]: errno=Connection refused
npm ERR! 
npm ERR! 
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/apm-install-dir-115021-6453-165clxb/npm-debug.log

@kevinsawicki
Copy link
Contributor

@jackmaney can you run apm config ls and verify the proxy settings there look correct?

@jackmaney
Copy link
Author

Yes, they look correct:

$ apm config ls
; cli configs
globalconfig = "/Applications/Atom.app/Contents/Resources/app/apm/.apmrc"
user-agent = "npm/2.1.18 node/v0.10.35 darwin x64"
userconfig = "/Users/[username]/.atom/.apmrc"

; userconfig /Users/[username]/.atom/.apmrc
http-proxy = "http://[username]:[password]@[host]:[port]"
https-proxy = "http://[username]:[password]@[host]:[port]/"
proxy = "http://[username]:[password]@[host]:[port]/"
strict-ssl = false

; globalconfig /Applications/Atom.app/Contents/Resources/app/apm/.apmrc
cache = "/Users/[username]/.atom/.node-gyp/.atom/.apm"

; node bin location = /Applications/Atom.app/Contents/Resources/app/apm/bin/node
; cwd = /Users/[username]/
; HOME = /Users/[username]/.atom/.node-gyp
; 'npm config ls -l' to show all defaults.

@jackmaney
Copy link
Author

For the heck of it, I tried uninstalling Atom Lint and doing a fresh reinstall of the package. No dice.

@kevinsawicki
Copy link
Contributor

Weird, I'm really not sure what else to try at this point besides opening the npm code from within apm on your machine and log out the environment when git is spawned to verify the environment variables.

@jackmaney
Copy link
Author

Hmmmm...apm uses its own special npm installation (as opposed to a global one), I take it?

@kevinsawicki
Copy link
Contributor

Yeah, apm bundles npm and spawns it with certain flags for building things against the node version that ships with atom

@jackmaney
Copy link
Author

Hmmm, okay, I'll try digging into the code later this week and see what I can come up with. Thank you for all of your help.

@jackmaney
Copy link
Author

😕

Wait....

$ apm install atom-lint
Installing atom-lint to /Users/[username]/.atom/packages ✓

What the...

@jackmaney
Copy link
Author

Huh...using apm on the command line, I could install all of the packages above except for Linter Clang and Markdown Preview Plus.

@kevinsawicki
Copy link
Contributor

Linter Clang and Markdown Preview Plus.

Same github.com related errors as from within Atom?

@jackmaney
Copy link
Author

Actually...no. Good catch.

For Markdown Preview Plus, here's the stack trace from the command line:

> runas@1.1.0 install /private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/apm-install-dir-115021-11912-jnfluk/node_modules/markdown-preview-plus/node_modules/pathwatcher/node_modules/runas
> node-gyp rebuild

make: Entering directory '/private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/apm-install-dir-115021-11912-jnfluk/node_modules/markdown-preview-plus/node_modules/pathwatcher/node_modules/runas/build'
  CXX(target) Release/obj.target/runas/src/main.o
  CXX(target) Release/obj.target/runas/src/runas_darwin.o
  CXX(target) Release/obj.target/runas/src/fork.o
  SOLINK_MODULE(target) Release/runas.node
  SOLINK_MODULE(target) Release/runas.node: Finished
DSYMUTIL(runas)
make: Leaving directory '/private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/apm-install-dir-115021-11912-jnfluk/node_modules/markdown-preview-plus/node_modules/pathwatcher/node_modules/runas/build'

> oniguruma@3.0.6 install /private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/apm-install-dir-115021-11912-jnfluk/node_modules/markdown-preview-plus/node_modules/highlights/node_modules/first-mate/node_modules/oniguruma
> node-gyp rebuild

make: Entering directory '/private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/apm-install-dir-115021-11912-jnfluk/node_modules/markdown-preview-plus/node_modules/highlights/node_modules/first-mate/node_modules/oniguruma/build'
  CC(target) Release/obj.target/oniguruma/deps/onig/regcomp.o
  CC(target) Release/obj.target/oniguruma/deps/onig/regenc.o
  CC(target) Release/obj.target/oniguruma/deps/onig/regerror.o
  CC(target) Release/obj.target/oniguruma/deps/onig/regexec.o
  CC(target) Release/obj.target/oniguruma/deps/onig/regext.o
  CC(target) Release/obj.target/oniguruma/deps/onig/reggnu.o
  CC(target) Release/obj.target/oniguruma/deps/onig/regparse.o
  CC(target) Release/obj.target/oniguruma/deps/onig/regposerr.o
  CC(target) Release/obj.target/oniguruma/deps/onig/regposix.o
  CC(target) Release/obj.target/oniguruma/deps/onig/regsyntax.o
  CC(target) Release/obj.target/oniguruma/deps/onig/regtrav.o
  CC(target) Release/obj.target/oniguruma/deps/onig/regversion.o
  CC(target) Release/obj.target/oniguruma/deps/onig/st.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/ascii.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/big5.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/cp1251.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/euc_jp.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/euc_kr.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/euc_tw.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/gb18030.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_1.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_2.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_3.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_4.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_5.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_6.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_7.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_8.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_9.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_10.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_11.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_13.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_14.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_15.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_16.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/koi8.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/koi8_r.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/mktable.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/sjis.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/unicode.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf16_be.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf16_le.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf32_be.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf32_le.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf8.o
  LIBTOOL-STATIC Release/oniguruma.a
  CXX(target) Release/obj.target/onig_scanner/src/onig-cache.o
onig_scanner.target.mk:119: recipe for target 'Release/obj.target/onig_scanner/src/onig-cache.o' failed
make: Leaving directory '/private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/apm-install-dir-115021-11912-jnfluk/node_modules/markdown-preview-plus/node_modules/highlights/node_modules/first-mate/node_modules/oniguruma/build'

> pathwatcher@2.6.1 install /private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/apm-install-dir-115021-11912-jnfluk/node_modules/markdown-preview-plus/node_modules/pathwatcher
> node-gyp rebuild

make: Entering directory '/private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/apm-install-dir-115021-11912-jnfluk/node_modules/markdown-preview-plus/node_modules/pathwatcher/build'
  CXX(target) Release/obj.target/pathwatcher/src/main.o
  CXX(target) Release/obj.target/pathwatcher/src/common.o
  CXX(target) Release/obj.target/pathwatcher/src/handle_map.o
  CXX(target) Release/obj.target/pathwatcher/src/pathwatcher_mac.o
  SOLINK_MODULE(target) Release/pathwatcher.node
  SOLINK_MODULE(target) Release/pathwatcher.node: Finished
DSYMUTIL(pathwatcher)
make: Leaving directory '/private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/apm-install-dir-115021-11912-jnfluk/node_modules/markdown-preview-plus/node_modules/pathwatcher/build'

../src/runas_darwin.cc:21:0: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
 #pragma clang diagnostic push
 ^
../src/runas_darwin.cc:22:0: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
 ^
../src/runas_darwin.cc:28:0: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
 #pragma clang diagnostic pop
 ^
../deps/onig/regcomp.c: In function 'is_not_included':
../deps/onig/regcomp.c:2402:13: warning: variable 'c' set but not used [-Wunused-but-set-variable]
   UChar *p, c;
             ^
../deps/onig/regcomp.c: In function 'update_string_node_case_fold':
../deps/onig/regcomp.c:3192:14: warning: variable 'q' set but not used [-Wunused-but-set-variable]
   UChar *p, *q, *end, buf[ONIGENC_MBC_CASE_FOLD_MAXLEN];
              ^
../deps/onig/regparse.c: In function 'fetch_escaped_value':
../deps/onig/regparse.c:252:30: warning: variable 'pfetch_prev' set but not used [-Wunused-but-set-variable]
 #define PFETCH_READY  UChar* pfetch_prev
                              ^
../deps/onig/regparse.c:2407:3: note: in expansion of macro 'PFETCH_READY'
   PFETCH_READY;
   ^
../deps/onig/regparse.c: In function 'fetch_name':
../deps/onig/regparse.c:252:30: warning: variable 'pfetch_prev' set but not used [-Wunused-but-set-variable]
 #define PFETCH_READY  UChar* pfetch_prev
                              ^
../deps/onig/regparse.c:2620:3: note: in expansion of macro 'PFETCH_READY'
   PFETCH_READY;
   ^
../deps/onig/regparse.c: In function 'parse_posix_bracket':
../deps/onig/regparse.c:252:30: warning: variable 'pfetch_prev' set but not used [-Wunused-but-set-variable]
 #define PFETCH_READY  UChar* pfetch_prev
                              ^
../deps/onig/regparse.c:3938:3: note: in expansion of macro 'PFETCH_READY'
   PFETCH_READY;
   ^
../deps/onig/regparse.c: In function 'fetch_char_property_to_ctype':
../deps/onig/regparse.c:252:30: warning: variable 'pfetch_prev' set but not used [-Wunused-but-set-variable]
 #define PFETCH_READY  UChar* pfetch_prev
                              ^
../deps/onig/regparse.c:3991:3: note: in expansion of macro 'PFETCH_READY'
   PFETCH_READY;
   ^
../deps/onig/regparse.c: In function 'code_exist_check':
../deps/onig/regparse.c:252:30: warning: variable 'pfetch_prev' set but not used [-Wunused-but-set-variable]
 #define PFETCH_READY  UChar* pfetch_prev
                              ^
../deps/onig/regparse.c:4156:3: note: in expansion of macro 'PFETCH_READY'
   PFETCH_READY;
   ^
g++: error: unrecognized command line option '-stdlib=libc++'
make: *** [Release/obj.target/onig_scanner/src/onig-cache.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Darwin 13.4.0
gyp ERR! command "node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/apm-install-dir-115021-11912-jnfluk/node_modules/markdown-preview-plus/node_modules/highlights/node_modules/first-mate/node_modules/oniguruma
gyp ERR! node -v v0.10.35
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm ERR! Darwin 13.4.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Applications/Atom.app/Contents/Resources/app/apm/.apmrc" "--userconfig" "/Users/[username]/.atom/.apmrc" "install" "/private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/d-115021-11912-gvnp14/package.tgz" "--target=0.20.0" "--arch=x64"
npm ERR! node v0.10.35
npm ERR! npm  v2.1.18
npm ERR! code ELIFECYCLE

npm ERR! oniguruma@3.0.6 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the oniguruma@3.0.6 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the oniguruma package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls oniguruma
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/apm-install-dir-115021-11912-jnfluk/npm-debug.log

And here's the stack trace from within Atom itself (Settings > Updates):

> runas@1.1.0 install /private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/apm-install-dir-115021-15282-150so7u/node_modules/markdown-preview-plus/node_modules/pathwatcher/node_modules/runas
> node-gyp rebuild

  CXX(target) Release/obj.target/runas/src/main.o
  CXX(target) Release/obj.target/runas/src/runas_darwin.o
  CXX(target) Release/obj.target/runas/src/fork.o
  SOLINK_MODULE(target) Release/runas.node
  SOLINK_MODULE(target) Release/runas.node: Finished
DSYMUTIL(runas)

> oniguruma@3.0.6 install /private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/apm-install-dir-115021-15282-150so7u/node_modules/markdown-preview-plus/node_modules/highlights/node_modules/first-mate/node_modules/oniguruma
> node-gyp rebuild

  CC(target) Release/obj.target/oniguruma/deps/onig/regcomp.o
  CC(target) Release/obj.target/oniguruma/deps/onig/regenc.o
  CC(target) Release/obj.target/oniguruma/deps/onig/regerror.o
  CC(target) Release/obj.target/oniguruma/deps/onig/regexec.o
  CC(target) Release/obj.target/oniguruma/deps/onig/regext.o
  CC(target) Release/obj.target/oniguruma/deps/onig/reggnu.o
  CC(target) Release/obj.target/oniguruma/deps/onig/regparse.o
  CC(target) Release/obj.target/oniguruma/deps/onig/regposerr.o
  CC(target) Release/obj.target/oniguruma/deps/onig/regposix.o
  CC(target) Release/obj.target/oniguruma/deps/onig/regsyntax.o
  CC(target) Release/obj.target/oniguruma/deps/onig/regtrav.o
  CC(target) Release/obj.target/oniguruma/deps/onig/regversion.o
  CC(target) Release/obj.target/oniguruma/deps/onig/st.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/ascii.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/big5.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/cp1251.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/euc_jp.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/euc_kr.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/euc_tw.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/gb18030.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_1.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_2.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_3.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_4.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_5.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_6.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_7.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_8.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_9.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_10.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_11.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_13.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_14.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_15.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_16.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/koi8.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/koi8_r.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/mktable.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/sjis.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/unicode.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf16_be.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf16_le.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf32_be.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf32_le.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf8.o
  LIBTOOL-STATIC Release/oniguruma.a
  CXX(target) Release/obj.target/onig_scanner/src/onig-cache.o
  CXX(target) Release/obj.target/onig_scanner/src/onig-result.o
  CXX(target) Release/obj.target/onig_scanner/src/onig-reg-exp.o
  CXX(target) Release/obj.target/onig_scanner/src/onig-scanner.o
  CXX(target) Release/obj.target/onig_scanner/src/onig-scanner-worker.o
  CXX(target) Release/obj.target/onig_scanner/src/onig-searcher.o
  CXX(target) Release/obj.target/onig_scanner/src/unicode-utils-posix.o
  SOLINK_MODULE(target) Release/onig_scanner.node
  SOLINK_MODULE(target) Release/onig_scanner.node: Finished
DSYMUTIL(onig_scanner)

npm ERR! git fetch -a origin (https://github.com/Benvie/harmony-collections.git) fatal: unable to access 'https://github.com/Benvie/harmony-collections.git/': Failed connect to github.com:443; Connection refused
npm ERR! git fetch -a origin (https://github.com/Benvie/harmony-collections.git) fatal: unable to access 'https://github.com/Benvie/harmony-collections.git/': Failed connect to github.com:443; Connection refused
npm ERR! git fetch -a origin (https://github.com/Benvie/harmony-collections.git) fatal: unable to access 'https://github.com/Benvie/harmony-collections.git/': Failed connect to github.com:443; Connection refused
npm ERR! Darwin 13.4.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Applications/Atom.app/Contents/Resources/app/apm/.apmrc" "--userconfig" "/Users/[username]/.atom/.apmrc" "install" "/private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/d-115021-15282-1c208yx/package.tgz" "--target=0.20.0" "--arch=x64"
npm ERR! node v0.10.35
npm ERR! npm  v2.1.18
npm ERR! code 128

npm ERR! Command failed: fatal: unable to access 'https://github.com/Benvie/harmony-collections.git/': Failed connect to github.com:443; Connection refused
npm ERR! 
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/apm-install-dir-115021-15282-150so7u/npm-debug.log

No mention of harmony-collections in the former.

@kevinsawicki
Copy link
Contributor

On the command line, do you have any proxy environment variables set? like HTTP_PROXY or HTTPS_PROXY

In Atom, if you open the dev tools, go to the console tab, and type process.env, do you see those same variables there?

@jackmaney
Copy link
Author

For Linter Clang, here's the stack trace from the command line:

npm ERR! git clone git://github.com/wanderer2/clang-flags.git Cloning into bare repository '/Users/[username]/.atom/.node-gyp/.atom/.apm/_git-remotes/git-github-com-wanderer2-clang-flags-git-6d0aa0dc'...
npm ERR! git clone git://github.com/wanderer2/clang-flags.git fatal: unable to connect to github.com:
npm ERR! git clone git://github.com/wanderer2/clang-flags.git github.com[0: 192.30.252.131]: errno=Connection refused
npm ERR! Darwin 13.4.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Applications/Atom.app/Contents/Resources/app/apm/.apmrc" "--userconfig" "/Users/[username]/.atom/.apmrc" "install" "/private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/d-115021-18104-1lt1lie/package.tgz" "--target=0.20.0" "--arch=x64"
npm ERR! node v0.10.35
npm ERR! npm  v2.1.18
npm ERR! code 128

npm ERR! Command failed: Cloning into bare repository '/Users/[username]/.atom/.node-gyp/.atom/.apm/_git-remotes/git-github-com-wanderer2-clang-flags-git-6d0aa0dc'...
npm ERR! fatal: unable to connect to github.com:
npm ERR! github.com[0: 192.30.252.131]: errno=Connection refused
npm ERR!
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/apm-install-dir-115021-18104-77eve6/npm-debug.log

and from within Atom:

npm ERR! git clone git://github.com/wanderer2/clang-flags.git Cloning into bare repository '/Users/[username]/.atom/.node-gyp/.atom/.apm/_git-remotes/git-github-com-wanderer2-clang-flags-git-6d0aa0dc'...
npm ERR! git clone git://github.com/wanderer2/clang-flags.git fatal: unable to connect to github.com:
npm ERR! git clone git://github.com/wanderer2/clang-flags.git github.com[0: 192.30.252.131]: errno=Connection refused
npm ERR! Darwin 13.4.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Applications/Atom.app/Contents/Resources/app/apm/.apmrc" "--userconfig" "/Users/[username]/.atom/.apmrc" "install" "/private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/d-115021-18157-19ijk4w/package.tgz" "--target=0.20.0" "--arch=x64"
npm ERR! node v0.10.35
npm ERR! npm  v2.1.18
npm ERR! code 128

npm ERR! Command failed: Cloning into bare repository '/Users/[username]/.atom/.node-gyp/.atom/.apm/_git-remotes/git-github-com-wanderer2-clang-flags-git-6d0aa0dc'...
npm ERR! fatal: unable to connect to github.com:
npm ERR! github.com[0: 192.30.252.131]: errno=Connection refused
npm ERR! 
npm ERR! 
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /private/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/apm-install-dir-115021-18157-16w00yz/npm-debug.log

Unfortunately, I have to go for tonight, but I'll look into tacking some logging onto apm to maybe get a better handle on what's going on.

@jackmaney
Copy link
Author

Sorry, didn't see your reply above.

On the command line, do you have any proxy environment variables set? like HTTP_PROXY or HTTPS_PROXY

Yep, along with http_proxy and https_proxy.

In Atom, if you open the dev tools, go to the console tab, and type process.env, do you see those same variables there?

Nope:

process.env
Object {PATH: "/usr/bin:/bin:/usr/sbin:/sbin", TMPDIR: "/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/", SHELL: "/usr/local/bin/bash", HOME: "/Users/[username]", USER: "[username]"…}ATOM_HOME: "/Users/[username]/.atom", Apple_PubSub_Socket_Render: "/tmp/launch-o0PVyE/Render", DISPLAY: "/tmp/launch-MorqiC/org.macosforge.xquartz:0", GOOGLE_API_KEY: "banana banana banana", HOME: "/Users/[username]", LOGNAME: "[username]", NODE_ENV: "production", NODE_PATH: "/Applications/Atom.app/Contents/Resources/app/exports", PATH: "/usr/bin:/bin:/usr/sbin:/sbin", SHELL: "/usr/local/bin/bash", SSH_AUTH_SOCK: "/tmp/launch-4JCSgv/Listeners", TMPDIR: "/var/folders/kk/r0v_bq3x6bj58dyn_b3rb_wh0000gp/T/", USER: "[username]", __CF_USER_TEXT_ENCODING: "0x1F6:0:0", __CHECKFIX1436934: "1", __proto__: Object

I was a bit confused about the ... after USER: "[username]", but a for (var key in process.env){console.log(key, process.env[key]);} showed all of the attributes and values mentioned above.

@jackmaney
Copy link
Author

The issue still persists in Atom 0.176.0.

@kevinsawicki
Copy link
Contributor

So just confirming one more thing, is your http_proxy environment variable value the same as the value in your .apmrc file?

@kevinsawicki
Copy link
Contributor

I added a fix over in #280, please let me know if it doesn't fix the issue after Atom 0.177 comes out, thanks

@jackmaney
Copy link
Author

Yes, the http_proxy environment variable is the same as that in my .apmrc. I'll let you know if the issue persists in 0.177.0. Thanks.

@jackmaney
Copy link
Author

I upgraded to 0.177.0, and of the extensions above, everything updates except for Linter Clang and Markdown Preview Plus. The stack traces seem to be different enough for those two packages, that I'll investigate them separately (and, if necessary, create separate issues for those repos).

Thank you so much for your help!

@kevinsawicki
Copy link
Contributor

Awesome, thanks for the update.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants