2016-09-14 19 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私はシステムのプロキシとしていた問題には問題はありません。このため、http_proxyhttps_proxyの設定を解除する必要があります。私がやったこと

は次のとおりです。

unset http_proxy 
unset https_proxy 
関連する問題