Unable to install Packages


#1

Hi,

I am behind a firewall at work. I am trying to install Omnisharp Atom package and I get an error. Looking at the long log, this is where it fails first:

npm ERR! git clone https://github.com/Benvie/harmony-collections.git fatal: unable to access 'https://github.com/Benvie/harmony-collections.git/': SSL certificate problem: unable to get local issuer certificate

I have no idea what to do next from within Atom. I have tried doing this as well: apm install omnisharp-atom with the same result.

How can I bypass that SSL issue?


#2

Have you tried the items in the apm README regarding firewalls?


#3

I have tried that, which I got from this issue: https://github.com/atom/apm/issues/103 That fixed other issues :smile:

I can’t seem to find how to go around that one. This is the complete error log in case that it helps:

npm http GET https://registry.npmjs.org/ansi-to-html
npm http GET https://registry.npmjs.org/fs-plus
npm http GET https://registry.npmjs.org/jquery
npm http GET https://registry.npmjs.org/request-promise
npm http GET https://registry.npmjs.org/bluebird
npm http GET https://registry.npmjs.org/autocomplete-plus-async-plus
npm http GET https://registry.npmjs.org/event-kit/0.7.2
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/vue
npm http GET https://registry.npmjs.org/omnisharp-server-binaries
npm http 304 https://registry.npmjs.org/bluebird
npm http 304 https://registry.npmjs.org/ansi-to-html
npm http 304 https://registry.npmjs.org/fs-plus
npm http 304 https://registry.npmjs.org/request-promise
npm http 304 https://registry.npmjs.org/jquery
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/autocomplete-plus-async-plus
npm http 304 https://registry.npmjs.org/event-kit/0.7.2
npm http 304 https://registry.npmjs.org/vue
npm http 304 https://registry.npmjs.org/omnisharp-server-binaries
npm http GET https://registry.npmjs.org/underscore-plus
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/grim
npm http 403 https://registry.npmjs.org/async
npm ERR! registry error parsing json
npm http 304 https://registry.npmjs.org/mkdirp
npm http 403 https://registry.npmjs.org/rimraf
npm ERR! registry error parsing json
npm http 403 https://registry.npmjs.org/underscore-plus
npm ERR! registry error parsing json
npm http 403 https://registry.npmjs.org/request
npm ERR! registry error parsing json
npm http GET https://registry.npmjs.org/fuzzaldrin
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/temp
npm http 304 https://registry.npmjs.org/grim
npm http GET https://registry.npmjs.org/emissary
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/temp
npm http GET https://registry.npmjs.org/bl
npm http GET https://registry.npmjs.org/caseless
npm http GET https://registry.npmjs.org/forever-agent
npm http GET https://registry.npmjs.org/form-data
npm http GET https://registry.npmjs.org/json-stringify-safe
npm http GET https://registry.npmjs.org/mime-types
npm http GET https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/node-uuid
npm http GET https://registry.npmjs.org/tunnel-agent
npm http GET https://registry.npmjs.org/http-signature
npm http GET https://registry.npmjs.org/oauth-sign
npm http GET https://registry.npmjs.org/tough-cookie
npm http GET https://registry.npmjs.org/hawk/1.1.1
npm http GET https://registry.npmjs.org/aws-sign2
npm http GET https://registry.npmjs.org/stringstream
npm http GET https://registry.npmjs.org/combined-stream
npm http 304 https://registry.npmjs.org/fuzzaldrin
npm http 304 https://registry.npmjs.org/forever-agent
npm http GET https://registry.npmjs.org/lru-cache
npm http 304 https://registry.npmjs.org/emissary
npm http GET https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/bl
npm http 304 https://registry.npmjs.org/form-data
npm http 304 https://registry.npmjs.org/caseless
npm http 304 https://registry.npmjs.org/mime-types
npm http 304 https://registry.npmjs.org/json-stringify-safe
npm http GET https://registry.npmjs.org/mixto
npm http GET https://registry.npmjs.org/property-accessors
npm http 304 https://registry.npmjs.org/qs
npm http 304 https://registry.npmjs.org/node-uuid
npm WARN `git config --get remote.origin.url` returned wrong result (https://github.com/Benvie/harmony-collections.git)
npm http 304 https://registry.npmjs.org/tunnel-agent
npm http 304 https://registry.npmjs.org/http-signature
npm http 304 https://registry.npmjs.org/oauth-sign
npm http 304 https://registry.npmjs.org/hawk/1.1.1
npm http 304 https://registry.npmjs.org/tough-cookie
npm http 304 https://registry.npmjs.org/aws-sign2
npm http 304 https://registry.npmjs.org/combined-stream
npm http 304 https://registry.npmjs.org/stringstream
npm http 304 https://registry.npmjs.org/lru-cache
npm ERR! git clone https://github.com/Benvie/harmony-collections.git Cloning into bare repository 'C:\Users\janier.davila\AppData\Roaming\npm-cache\_git-remotes\https-github-com-Benvie-harmony-collections-git-df214100'...
npm ERR! git clone https://github.com/Benvie/harmony-collections.git fatal: unable to access 'https://github.com/Benvie/harmony-collections.git/': SSL certificate problem: unable to get local issuer certificate
npm http 304 https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/mixto
npm http GET https://registry.npmjs.org/delayed-stream/0.0.5
npm http 304 https://registry.npmjs.org/property-accessors
npm http 304 https://registry.npmjs.org/delayed-stream/0.0.5
npm http GET https://registry.npmjs.org/readable-stream
npm http GET https://registry.npmjs.org/asn1/0.1.11
npm http GET https://registry.npmjs.org/assert-plus/0.1.2
npm http GET https://registry.npmjs.org/ctype/0.5.2
npm ERR! Error: ENOENT, open 'C:\Users\JANIER~1.DAV\AppData\Local\Temp\apm-install-dir-1141116-25268-85elfa\node_modules\omnisharp-atom\node_modules\request-promise\node_modules\request\node_modules\tough-cookie\lib\pubsuffix.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 Windows_NT 6.2.9200
npm ERR! command "c:\\Users\\janier.davila\\AppData\\Local\\atom\\app-0.158.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\bin\\\\node.exe" "c:\\Users\\janier.davila\\AppData\\Local\\atom\\app-0.158.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "c:\\Users\\janier.davila\\AppData\\Local\\atom\\app-0.158.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\.apmrc" "--userconfig" "C:\\Users\\janier.davila\\.atom\\.apmrc" "install" "C:\\Users\\JANIER~1.DAV\\AppData\\Local\\Temp\\d-1141116-25268-yhdydx\\package.tgz" "--target=0.18.0" "--arch=ia32" "--msvs_version=2013"
npm ERR! cwd C:\Users\JANIER~1.DAV\AppData\Local\Temp\apm-install-dir-1141116-25268-85elfa
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.4
npm ERR! path C:\Users\JANIER~1.DAV\AppData\Local\Temp\apm-install-dir-1141116-25268-85elfa\node_modules\omnisharp-atom\node_modules\request-promise\node_modules\request\node_modules\tough-cookie\lib\pubsuffix.js
npm ERR! code ENOENT
npm ERR! errno 34
npm http 304 https://registry.npmjs.org/readable-stream
npm http GET https://registry.npmjs.org/mime-db
npm ERR! error rolling back Error: EPERM, unlink 'C:\Users\JANIER~1.DAV\AppData\Local\Temp\apm-install-dir-1141116-25268-85elfa\node_modules\omnisharp-atom\node_modules\request-promise\node_modules\request\node_modules\qs'
npm ERR! error rolling back  request@2.51.0 { [Error: EPERM, unlink 'C:\Users\JANIER~1.DAV\AppData\Local\Temp\apm-install-dir-1141116-25268-85elfa\node_modules\omnisharp-atom\node_modules\request-promise\node_modules\request\node_modules\qs']
npm ERR! error rolling back   errno: 50,
npm ERR! error rolling back   code: 'EPERM',
npm ERR! error rolling back   path: 'C:\\Users\\JANIER~1.DAV\\AppData\\Local\\Temp\\apm-install-dir-1141116-25268-85elfa\\node_modules\\omnisharp-atom\\node_modules\\request-promise\\node_modules\\request\\node_modules\\qs' }
npm ERR! Error: ENOENT, lstat 'C:\Users\JANIER~1.DAV\AppData\Local\Temp\apm-install-dir-1141116-25268-85elfa\node_modules\omnisharp-atom\node_modules\request-promise\node_modules\request\node_modules\hawk\lib\server.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 Windows_NT 6.2.9200
npm ERR! command "c:\\Users\\janier.davila\\AppData\\Local\\atom\\app-0.158.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\bin\\\\node.exe" "c:\\Users\\janier.davila\\AppData\\Local\\atom\\app-0.158.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "c:\\Users\\janier.davila\\AppData\\Local\\atom\\app-0.158.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\.apmrc" "--userconfig" "C:\\Users\\janier.davila\\.atom\\.apmrc" "install" "C:\\Users\\JANIER~1.DAV\\AppData\\Local\\Temp\\d-1141116-25268-yhdydx\\package.tgz" "--target=0.18.0" "--arch=ia32" "--msvs_version=2013"
npm ERR! cwd C:\Users\JANIER~1.DAV\AppData\Local\Temp\apm-install-dir-1141116-25268-85elfa
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.4
npm ERR! path C:\Users\JANIER~1.DAV\AppData\Local\Temp\apm-install-dir-1141116-25268-85elfa\node_modules\omnisharp-atom\node_modules\request-promise\node_modules\request\node_modules\hawk\lib\server.js
npm ERR! fstream_path C:\Users\JANIER~1.DAV\AppData\Local\Temp\apm-install-dir-1141116-25268-85elfa\node_modules\omnisharp-atom\node_modules\request-promise\node_modules\request\node_modules\hawk\lib\server.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack c:\Users\janier.davila\AppData\Local\atom\app-0.158.0\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:107:15)
npm ERR! error rolling back Error: EPERM, unlink 'C:\Users\JANIER~1.DAV\AppData\Local\Temp\apm-install-dir-1141116-25268-85elfa\node_modules\omnisharp-atom\node_modules\request-promise\node_modules\request\node_modules\form-data'
npm ERR! error rolling back  request-promise@0.1.4 { [Error: EPERM, unlink 'C:\Users\JANIER~1.DAV\AppData\Local\Temp\apm-install-dir-1141116-25268-85elfa\node_modules\omnisharp-atom\node_modules\request-promise\node_modules\request\node_modules\form-data']
npm ERR! error rolling back   errno: 50,
npm ERR! error rolling back   code: 'EPERM',
npm ERR! error rolling back   path: 'C:\\Users\\JANIER~1.DAV\\AppData\\Local\\Temp\\apm-install-dir-1141116-25268-85elfa\\node_modules\\omnisharp-atom\\node_modules\\request-promise\\node_modules\\request\\node_modules\\form-data' }
npm ERR! EEXIST, mkdir 'C:\Users\JANIER~1.DAV\AppData\Local\Temp\apm-install-dir-1141116-25268-85elfa\node_modules\omnisharp-atom\node_modules\request-promise\node_modules\request\node_modules\bl\node_modules\readable-stream'
File exists: C:\Users\JANIER~1.DAV\AppData\Local\Temp\apm-install-dir-1141116-25268-85elfa\node_modules\omnisharp-atom\node_modules\request-promise\node_modules\request\node_modules\bl\node_modules\readable-stream
Move it away, and try again.

npm ERR! System Windows_NT 6.2.9200
npm ERR! command "c:\\Users\\janier.davila\\AppData\\Local\\atom\\app-0.158.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\bin\\\\node.exe" "c:\\Users\\janier.davila\\AppData\\Local\\atom\\app-0.158.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "c:\\Users\\janier.davila\\AppData\\Local\\atom\\app-0.158.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\.apmrc" "--userconfig" "C:\\Users\\janier.davila\\.atom\\.apmrc" "install" "C:\\Users\\JANIER~1.DAV\\AppData\\Local\\Temp\\d-1141116-25268-yhdydx\\package.tgz" "--target=0.18.0" "--arch=ia32" "--msvs_version=2013"
npm ERR! cwd C:\Users\JANIER~1.DAV\AppData\Local\Temp\apm-install-dir-1141116-25268-85elfa
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.4
npm ERR! path C:\Users\JANIER~1.DAV\AppData\Local\Temp\apm-install-dir-1141116-25268-85elfa\node_modules\omnisharp-atom\node_modules\request-promise\node_modules\request\node_modules\bl\node_modules\readable-stream
npm ERR! fstream_path C:\Users\JANIER~1.DAV\AppData\Local\Temp\apm-install-dir-1141116-25268-85elfa\node_modules\omnisharp-atom\node_modules\request-promise\node_modules\request\node_modules\bl\node_modules\readable-stream\LICENSE
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! fstream_stack c:\Users\janier.davila\AppData\Local\atom\app-0.158.0\resources\app\apm\node_modules\atom-package-manager\node_modules\npm\node_modules\fstream\lib\writer.js:171:23
npm ERR! fstream_stack c:\Users\janier.davila\AppData\Local\atom\app-0.158.0\resources\app\apm\node_modules\atom-package-manager\node_modules\npm\node_modules\mkdirp\index.js:37:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat 'C:\Users\JANIER~1.DAV\AppData\Local\Temp\apm-install-dir-1141116-25268-85elfa\node_modules\omnisharp-atom\node_modules\omnisharp-server-binaries\OmniSharpServer\NRefactory\ICSharpCode.NRefactory.CSharp\Parser\mcs\generic.cs'
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 Windows_NT 6.2.9200
npm ERR! command "c:\\Users\\janier.davila\\AppData\\Local\\atom\\app-0.158.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\bin\\\\node.exe" "c:\\Users\\janier.davila\\AppData\\Local\\atom\\app-0.158.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "c:\\Users\\janier.davila\\AppData\\Local\\atom\\app-0.158.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\.apmrc" "--userconfig" "C:\\Users\\janier.davila\\.atom\\.apmrc" "install" "C:\\Users\\JANIER~1.DAV\\AppData\\Local\\Temp\\d-1141116-25268-yhdydx\\package.tgz" "--target=0.18.0" "--arch=ia32" "--msvs_version=2013"
npm ERR! cwd C:\Users\JANIER~1.DAV\AppData\Local\Temp\apm-install-dir-1141116-25268-85elfa
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.4
npm ERR! path C:\Users\JANIER~1.DAV\AppData\Local\Temp\apm-install-dir-1141116-25268-85elfa\node_modules\omnisharp-atom\node_modules\omnisharp-server-binaries\OmniSharpServer\NRefactory\ICSharpCode.NRefactory.CSharp\Parser\mcs\generic.cs
npm ERR! fstream_path C:\Users\JANIER~1.DAV\AppData\Local\Temp\apm-install-dir-1141116-25268-85elfa\node_modules\omnisharp-atom\node_modules\omnisharp-server-binaries\OmniSharpServer\NRefactory\ICSharpCode.NRefactory.CSharp\Parser\mcs\generic.cs
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack c:\Users\janier.davila\AppData\Local\atom\app-0.158.0\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:107:15)
npm http 200 https://registry.npmjs.org/asn1/0.1.11
npm http GET https://registry.npmjs.org/asn1/-/asn1-0.1.11.tgz
npm http 200 https://registry.npmjs.org/ctype/0.5.2
npm http GET https://registry.npmjs.org/ctype/-/ctype-0.5.2.tgz
npm ERR! Error: Command failed: Cloning into bare repository 'C:\Users\janier.davila\AppData\Roaming\npm-cache\_git-remotes\https-github-com-Benvie-harmony-collections-git-df214100'...
npm ERR! fatal: unable to access 'https://github.com/Benvie/harmony-collections.git/': SSL certificate problem: unable to get local issuer certificate
npm ERR!
npm ERR!     at ChildProcess.exithandler (child_process.js:648:15)
npm ERR!     at ChildProcess.emit (events.js:98:17)
npm ERR!     at maybeClose (child_process.js:756:16)
npm ERR!     at Socket.<anonymous> (child_process.js:969:11)
npm ERR!     at Socket.emit (events.js:95:17)
npm ERR!     at Pipe.close (net.js:465: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 Windows_NT 6.2.9200
npm ERR! command "c:\\Users\\janier.davila\\AppData\\Local\\atom\\app-0.158.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\bin\\\\node.exe" "c:\\Users\\janier.davila\\AppData\\Local\\atom\\app-0.158.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\node_modules\\npm\\bin\\npm-cli.js" "--globalconfig" "c:\\Users\\janier.davila\\AppData\\Local\\atom\\app-0.158.0\\resources\\app\\apm\\node_modules\\atom-package-manager\\.apmrc" "--userconfig" "C:\\Users\\janier.davila\\.atom\\.apmrc" "install" "C:\\Users\\JANIER~1.DAV\\AppData\\Local\\Temp\\d-1141116-25268-yhdydx\\package.tgz" "--target=0.18.0" "--arch=ia32" "--msvs_version=2013"
npm ERR! cwd C:\Users\JANIER~1.DAV\AppData\Local\Temp\apm-install-dir-1141116-25268-85elfa
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.4
npm ERR! code 128
npm http 304 https://registry.npmjs.org/mime-db
npm http 304 https://registry.npmjs.org/assert-plus/0.1.2
npm http 200 https://registry.npmjs.org/asn1/-/asn1-0.1.11.tgz
npm http 200 https://registry.npmjs.org/ctype/-/ctype-0.5.2.tgz
npm

#4

I was able to find this:

I can’t verify whether or not this is good practice security-wise.


#5

Yes, I tried that and same result. Since I had git install I also suffered from the same issue in the past. I “Solved” it but having this in my git installation:

http.sslverify=false 

Which I know is a big security no-no, etc. Does Atom uses the same Git install that’s on C:/Program Files (86)/Git. Maybe it uses a different .gitconfig.


#6

As far as I know, apm uses the version of Git from your PATH.