Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot install from npm [windows] #8

Open
istian opened this issue Jun 24, 2015 · 6 comments
Open

cannot install from npm [windows] #8

istian opened this issue Jun 24, 2015 · 6 comments

Comments

@istian
Copy link

istian commented Jun 24, 2015

hi Guys,

I'm trying to install this package via npm but have no luck. it always say can't connect to github. I have my git config global set to use https instead of git protocol and in fact npm install other packages works only this package. Am I missing something? or is there any workaround on this aside from direct cloning?

Thanks

@j4ys0n
Copy link

j4ys0n commented Jul 27, 2015

were you able to resolve this?

@dropofwill
Copy link

This is probably related to issue #3, there is a git dependency to Bessdsv's fork of bower-installer, which (as far as I can tell) is no longer necessary given the resolution of the issue upstream in blittle/bower-installer via PR's 62 and 101.

My solution (issue with an internal firewall) was to publish a fork without that dependency internally and so far that seems to be working fine.

@sava1192
Copy link

sava1192 commented Sep 7, 2015

same problem on Windows 7. log:

$ npm install karma-jasmine-jquery
npm WARN package.json @ No description
npm WARN package.json @ No repository field.
npm WARN package.json @ No README data
npm WARN package.json [email protected] No repository field.
npm WARN `git config --get remote.origin.url` returned wrong result (git://github.com/bessdsv/bower-
installer.git)
npm ERR! git clone git://github.com/bessdsv/bower-installer.git Cloning into bare repository 'C:\Use
rs\user\AppData\Roaming\npm-cache\_git-remotes\git-github-com-bessdsv-bower-installer-g
it-a4812cf9'...
npm ERR! git clone git://github.com/bessdsv/bower-installer.git fatal: unable to connect to github.c
om:
npm ERR! git clone git://github.com/bessdsv/bower-installer.git github.com[0: 192.30.252.131]: errno
=No error
npm ERR! Error: Command failed: Cloning into bare repository 'C:\Users\user\AppData\Roa
ming\npm-cache\_git-remotes\git-github-com-bessdsv-bower-installer-git-a4812cf9'...
npm ERR! fatal: unable to connect to github.com:
npm ERR! github.com[0: 192.30.252.131]: errno=No error
npm ERR!
npm ERR!
npm ERR!     at ChildProcess.exithandler (child_process.js:647:15)
npm ERR!     at ChildProcess.emit (events.js:98:17)
npm ERR!     at maybeClose (child_process.js:755:16)
npm ERR!     at Process.ChildProcess._handle.onexit (child_process.js:822:5)
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.1.7601
npm ERR! command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\node_modules\\npm
\\bin\\npm-cli.js" "install" "karma-jasmine-jquery"
npm ERR! cwd d:\some\folder
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code 128
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     d:\some\folder\npm-debug.log
npm ERR! not ok code 0

@mahalingaiahhr
Copy link

I am having the same issue on windows 7 too.

npm WARN git config --get remote.origin.url returned wrong result (git://github.com/bessdsv/bower-installer.git) undefined
npm WARN git config --get remote.origin.url returned wrong result (git://github.com/bessdsv/bower-installer.git) undefined
npm ERR! git clone git://github.com/bessdsv/bower-installer.git undefined
npm ERR! git clone git://github.com/bessdsv/bower-installer.git undefined
npm ERR! not found: git
npm ERR!
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install"

AStoker added a commit to AStoker/karma-jasmine-jquery that referenced this issue Nov 18, 2015
removed unneeded bower dependency.
bessdsv#8
@sandwichsudo
Copy link

I have this issue on OSX as well

@AStoker
Copy link

AStoker commented Apr 27, 2016

Since the pull request to fix the issue has been sitting untouched for months, a fork has been made with the fix. See details here: #10 Branch here: https://github.com/AStoker/karma-jasmine-jquery/

Via npm and Bower, it was registered under the name karma-jasmine-jquery-2 to avoid naming conflicts, but can also be installed via JSPM just fine. Unfortunate that it came to this, but it has been causing trouble for some time now.

borromeotlhs added a commit to borromeotlhs/EMS-Webapp that referenced this issue Oct 3, 2018
bessdsv/karma-jasmine-jquery#8 reveals that windows users are going to be stuck without this until:
1)The dependency issues are fixed. 
2) configuration within git to prefer "https://" over "git://" (really: ssh+git) links are honored in git, bower and npm.
3) a workaround to settings to avoid the failure of git ls-remote calls against a "git://" protocol link

As I am using cygwin, I didn't want to go down this path as I may just be revealing a larger issue within either of the above tool's issues with cygwin path issues?  Who knows. . .

Tested on:
windows 7 (x86_64)
node.js version: 8.12.0
npm version: 6.4.1
behind a corporate proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants