2016-09-14 86 views
0

我與npm和bower一起工作,並且沒有任何問題與移動互聯網連接,然後我連接到我的大學代理並更改配置中的代理(npm config set proxy),然後我又回來使用我自己的移動互聯網並將代理價值變爲空。但現在我無法使用npm或bower下載任何軟件包。我無法從npm或涼亭下載軟件包

我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

沒有與npmbower這個問題我是有系統代理沒有問題。所以我們需要取消設置http_proxyhttps_proxy以使其正常工作。

我所做的是:

unset http_proxy 
unset https_proxy