2016-09-14 4 views
0

모바일 인터넷 연결에 npm 및 bower를 사용하여 문제없이 작업 한 다음 대학 프록시에 연결하고 구성을 프록시로 변경했습니다 (npm config set proxy). 다시 사용으로 돌아 왔습니다. 내 자신의 모바일 인터넷 및 null 프록시 값을 chaged. 하지만 이제는 npm이나 bower를 사용하여 패키지를 다운로드 할 수 없습니다.npm 또는 bower에서 패키지를 다운로드 할 수 없습니다.

내 UserConfig를 파일 (~/.npmrc)

;;;; 
; npm userconfig file 
; this is a simple ini-formatted file 
; lines that start with semi-colons are comments. 
; read `npm help config` for help on the various options 
;;;; 


;;;; 
; all options with default values 
;;;; 
; access=null 
; always-auth=false 
; also=null 
; bin-links=true 
; browser=null 
; ca=null 
; cafile=undefined 
; cache=/home/charlesrajendran-/.npm 
; cache-lock-stale=60000 
; cache-lock-retries=10 
; cache-lock-wait=10000 
; cache-max=null 
; cache-min=10 
; cert=null 
; color=true 
; depth=null 
; description=true 
; dev=false 
; dry-run=false 
; editor=vi 
; engine-strict=false 
; force=false 
; fetch-retries=2 
; fetch-retry-factor=10 
; fetch-retry-mintimeout=10000 
; fetch-retry-maxtimeout=60000 
; git=git 
; git-tag-version=true 
; global=false 
; globalconfig=/usr/local/etc/npmrc 
; global-style=false 
; group=1000 
; heading=npm 
; if-present=false 
; ignore-scripts=false 
; init-module=/home/charlesrajendran-/.npm-init.js 
; init-author-name= 
; init-author-email= 
; init-author-url= 
; init-version=1.0.0 
; init-license=ISC 
; json=false 
; key=null 
; legacy-bundling=false 
; link=false 
; local-address=undefined 
; loglevel=warn 
; long=false 
; message=%s 
; node-version=4.2.6 
; npat=false 
; onload-script=null 
; only=null 
; optional=true 
; parseable=false 
; prefix=/usr 
; production=false 
; progress=true 
; proprietary-attribs=true 
; proxy=null 
; https-proxy=null 
; user-agent=npm/{npm-version} node/{node-version} {platform} {arch} 
; rebuild-bundle=true 
; registry=https://registry.npmjs.org/ 
; rollback=true 
; save=false 
; save-bundle=false 
; save-dev=false 
; save-exact=false 
; save-optional=false 
; save-prefix=^ 
; scope= 
; searchopts= 
; searchexclude=null 
; searchsort=name 
; shell=/bin/bash 
; shrinkwrap=true 
; sign-git-tag=false 
; strict-ssl=true 
; tag=latest 
; tag-version-prefix=v 
; tmp=/tmp 
; unicode=true 
; unsafe-perm=true 
; usage=false 
; user=0 
; userconfig=/home/charlesrajendran-/.npmrc 
; umask=2 
; version=false 
; versions=false 
; viewer=man 
; _exit=true 
; globalignorefile=/usr/local/etc/npmignore 

답변

0

npm 또는 bower I 시스템 프록시이었다 있었다 문제에 아무 문제가 없습니다. 따라서이 작업을 수행하려면 http_proxyhttps_proxy의 설정을 해제해야합니다. 내가 무슨 짓을

은 다음과 같습니다

unset http_proxy 
unset https_proxy 
관련 문제