Bower ECMDERR 수정하는 방법
Windows 7에서 "yeoman"과 "bower"를 사용하고 있지만 앱을 만들 때 다음 오류가 발생했습니다.
yo webapp
오류는
bower not-cached git://github.com/jlong/sass-bootstrap.git#~3.0.0
bower resolve git://github.com/jlong/sass-bootstrap.git#~3.0.0
bower not-cached git://github.com/Modernizr/Modernizr.git#~2.6.2
bower resolve git://github.com/Modernizr/Modernizr.git#~2.6.2
bower not-cached git://github.com/jquery/jquery.git#~1.10.2
bower resolve git://github.com/jquery/jquery.git#~1.10.2
bower ECMDERR Failed to execute "git ls-remote --tags --heads git://github
.com/jquery/jquery.git", exit code of #128
Additional error details:
fatal: unable to connect to github.com:
github.com[0: 192.30.252.130]: errno=No error
여인, 정자 및 노드의 버전
c:\yo-test>bower -v
1.2.8
c:\yo-test>yo -version
1.1.2
c:\yo-test>node -v
v0.10.15
어떤 제안이라도 대단히 감사합니다.
같은 문제가 발생할 수 있습니다 ... 방화벽 뒤에 내 컴퓨터가 밝혀지면 git : //github.com/jquery/jquery.git 에 액세스 할 수 없습니다
링크 : 복제를 위해 GitHub.com에 연결할 수 없습니다
방화벽을 변경하지 않은 솔루션 :
git config --global url."https://".insteadOf git://
https를 사용하여 Bower 설치 에서 복제 및 @Sindre Sorhus를 위해 GitHub.com에 연결할 수 없음 에서 @ bnguyen82의 크레딧 ?
나는 같은 문제가 있었고 위의 대답은 효과가 없었다. 그러나 나는 다른 것을 발견했다. 프록시에 문제가있을 수 있습니다. 프록시 뒤에 있다면 다음 단계를 수행해야합니다.
이것을 .bowerrc 에 넣어서 err ETIMEDOUT을 제거하십시오.
{
"directory": "app/bower_components",
"proxy": "http://PROXYSERVER:PORT",
"https-proxy": "https://PROXYSERVER:PORT",
"strict-ssl": false
}
그리고 이것은 ECMDERR을 제거합니다 :
git config --global http.proxy http://USER:PASSWORD@PROXYSERVER:PORT
그것은 나를 위해 작동합니다.
추신 : 영어 실수로 죄송합니다. 프랑스어입니다 ^^
다음 명령이 나를 위해 작동합니다
npm 캐시 정리
바우어 캐시 청소
그리고
정자 설치
나를 위해 git 을 최신 버전으로 업데이트 하는 것이 도움이되었습니다.
내 bower.json은 처음 다음과 같이 보였습니다.
{
"name": "HelloIonic",
"private": "true",
"devDependencies": {
"ionic": "driftyco/ionic-bower#1.3.1",
"ion-datetime-picker": "katemihalikova/ionic-datetime-picker#0.4.0",
"ion-tree-list": "fer/ion-tree-list#0.0.10"
}
}
"git remote -ls을 (를) 실행하지 못했습니다"문제가 발생했습니다. 다음과 같이 변경 한 후에 갑자기 작동하기 시작했습니다.
{
"name": "HelloIonic",
"private": true,
"devDependencies": {
"ionic": "^1.3.2",
"ion-datetime-picker": "^0.4.0",
"ion-tree-list": "^0.0.10"
},
"resolutions": {
"ionic": "^1.0.0-beta.9"
}
}
leoh의 답변에 기여하려면 (댓글을 게시 할 담당자가 충분하지 않기 때문에) :
If, like me, you found that you could not execute the command because git wasn't installed globally on your machine, opening Tools > Options in Visual Studio, then Projects and Solutions > Web Package Management > External Web Tools, you will see that, by default, there are two git locations:
- $(DevEnvDir)\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\cmd
- $(DevEnvDir)\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\bin
By default (for Visual Studio 2017 Enterprise), these respectively map to:
- C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\cmd
- C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\bin
Then open a command prompt (Windows + R > "cmd"), navigate to the above locations, and run leoh's command. I wasn't sure which to run it from, so I ran it from both just in case. The issue was resolved for me from then on.
You can remove all generators which have and install again. It's will be help.
In my case it was the antivirus' firewall preventing bower to connect with github. I hadn't realized the antivirus was asking through a windows whether i wanted to allow git to perform connection or not.
I allowed it and it worked like a charm :)
solution provided by Dakkon_jareth works for me, I was not having app/bower_components but library there, I changed that to app/bower_components and started working, I will also recommend to try 2-3 times after NPM Cache clean.
I had same problem. After installed "Microsoft .NET Core 1.0.0 RC2 - VS 2015" this fix it.
I work with VS 2015 and have the NoGit package installed. Updated it to the 0.1.0 and it fixed the problem.
Hope this might help someone.
I've also experienced some strange behavior with bower failing to install all dependencies.
None of posted solutions worked for me, that's why I'm posting this answer.
In my case bower install errored randomly almost each time with different package. All packages were on github, so why suddenly ?
unable to resolve github.com
Obviously something was wrong with networking.
Errors were on dockerized Ubuntu 16.04 running in virtualized rancher, so a number of possible points of failure were pretty big.
But fortunately the solution was extremely simple.
I realized that this is a basic installation and does not even have basic networking tools.
So after running apt install net-tools iputils-ping
all errors disappeared forever.
Pretty unexpected for me, hope it helps ...
Guys install of strugling with this, just manually download it and then do a bower install from local folder instead.
참고URL : https://stackoverflow.com/questions/21789683/how-to-fix-bower-ecmderr
'Programing' 카테고리의 다른 글
Less 컴파일러를 사용하여 16 진수 색상을 rgba로 어떻게 변환합니까? (0) | 2020.07.09 |
---|---|
android : imageview에서 이미지를 화면에 맞게 늘이기 (0) | 2020.07.09 |
XML 정의를 사용하여 삼각형 모양을 만드시겠습니까? (0) | 2020.07.09 |
WPF 및 XAML의 숨겨진 기능? (0) | 2020.07.09 |
오류 발생시 스크립트 종료 (0) | 2020.07.09 |