2017-12-19 46 views
1

전자 메일을 우분투 16.04에 설치하려고합니다. 이미 nodejs와 npm이 작동하고 있습니다. 하지만 갑자기 나는 유형에 따라 모듈을 설치할 수 없습니다입니다 : sudo는 NPM 설치 전자 아래 npm에서 전자를 설치할 수 없습니다

는 응답이 점점 오전된다

npm WARN registry Unexpected warning for https://registry.npmjs.org/: 
Miscellaneous Warning EAI_AGAIN: request to 
https://registry.npmjs.org/electron failed, reason: getaddrinfo 
EAI_AGAIN registry.npmjs.org:443 
npm WARN registry Using stale package data from 
https://registry.npmjs.org/ due to a request error during 
revalidation. 

> [email protected] postinstall 
/home/arthur/Documents/Programming/Electron/node_modules/electron 
> node install.js 



`/home/arthur/Documents/Programming/Electron/node_modules/electron/ 
install.js:48 

던져 문제가 관련이 ^

Error: read ECONNRESET 
at _errnoException (util.js:1024:11) 
at TLSWrap.onread (net.js:615:25) 
npm WARN [email protected] No repository field. 

npm ERR! code ELIFECYCLE 
npm ERR! errno 1 
npm ERR! [email protected] postinstall: `node install.js` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script. 
npm ERR! This is probably not a problem with npm. There is likely 
additional logging output above. 

npm ERR! A complete log of this run can be found in: 
npm ERR!  /home/arthur/.npm/_logs/2017-12-19T10_25_52_312Z- 
debug.log 
+0

'npm install'을 사용하여 패키지를 설치하는 데 이미 성공 했습니까? 아니면 처음 시도입니까? – edkeveked

+0

예, 처음에는 지금까지 할 수있었습니다. – artie

+0

사용중인 npm의 버전은 무엇입니까? – edkeveked

답변

2

잘못 프록시 구성. 이 answer을 기반으로 다음을 시도 할 수 있습니다.

npm config rm proxy 
npm config rm https-proxy 

그리고 필요에 따라 선택적으로, 프록시 및 HTTPS 프록시가 작동 제거 프록시 설정

npm config set proxy proxy-url 
npm config set https-proxy proxy-url 
+0

위의 대답은 프록시 및 https 프록시 URL을 설정하지 않고도 작동합니다 – artie

+0

@ArthurKalikiti 나는 대답을 이렇게 편집했습니다 가능하면 좀 더 일반적인 – edkeveked

0

을 설정하려고 : 초기 설정이 존재하는 경우

먼저 제거하려고 나, 비슷한 상황에있는 다른 사람이있는 경우를 대비하여. 터미널에 다음을 입력하십시오 :

npm config rm proxy 
npm config rm https-proxy