2014-04-08 2 views
2

Windows에서 명령 행 인터페이스 (CLI)를 사용하여 Cordova 버전 3.4.0-0.1.3을 사용하고 있습니다. 성공적으로 간단한 테스트 앱을 작성하고 Android 에뮬레이터에서 실행했습니다. 하지만 이제 앱에 플러그인을 추가하려고하면 오류가 발생합니다. 플러그인을 검색하려고해도 실패합니다. 기업 방화벽 뒤에 있기 때문에 문제가 있다는 것을 두려워합니다.하지만 프록시, http 프록시 및 https 프록시 설정을 지정합니다. 또한, 내가 설치 한 커맨드 라인 인터페이스 (나는 이것이 필요하지는 않다)가 필요한지에 관해 명확하지 않다. 내가 실행하면cordova CLI를 사용하여 플러그 인을 검색 또는 추가하는 중 오류가 발생했습니다.

, 예를 들어, "코르도바 플러그인 검색 장치", 나는 오류가 나타납니다

Error: connect ECONNREFUSED at errnoException (net.js:904:11) at Object.afterConnect [as oncomplete] (net.js:895:19)

을 그리고 org.apache를 추가 코르도바 플러그인 "예를 들어, 사용하여 플러그인을 설치하려고하면 .cordova.device "로 설정하면 다음과 같이 실패합니다.

Fetching plugin "org.apache.cordova.device" via plugin registry Error: Failed to fetch package information for org.apache.cordova.device at C:\Users\xxx\AppData\Roaming\npm\node_modules\cordova\node_modules\plug man\src\registry\registry.js:32:20 at Request.cb [as _callback] (C:\Users\71476\AppData\Roaming\npm\node_module s\cordova\node_modules\plugman\src\registry\registry.js:251:9) at self.callback (C:\Users\71476\AppData\Roaming\npm\node_modules\cordova\no de_modules\plugman\node_modules\request\index.js:148:22) at Request.EventEmitter.emit (events.js:117:20) at ClientRequest.self.clientErrorHandler (C:\Users\71476\AppData\Roaming\npm \node_modules\cordova\node_modules\plugman\node_modules\request\index.js:257:10)

at ClientRequest.EventEmitter.emit (events.js:95:17) 
at Socket.socketErrorListener (http.js:1547:9) 
at Socket.EventEmitter.emit (events.js:95:17) 
at net.js:440:14 
at process._tickCallback (node.js:415:13) 

프록시 설정이 올바른지 확인할 방법이 있습니까? 내가 뭘 더 확인할 수 있니?

+1

설정해보십시오 NPM 프록시 : http://jjasonclark.com/how-to-setup-node-behind-web-proxy 와 GIT 프록시 : http://stackoverflow.com/questions/783811/getting -git-to-a-proxy-server – MBillau

답변

0

시도해 후 다시 추가하십시오.

cordova plugin 
cordova plugin rm org.apache.cordova.device 
cordova plugin add org.apache.cordova.device