繁体   English   中英

我无法从npm或bower下载软件包

[英]I cannot download packages from npm or bower

我使用npm和bower进行移动互联网连接时没有任何问题,然后我连接到我的大学代理并更改了配置中的代理( npm config set proxy ),然后再次回到使用自己的移动互联网并追逐该代理值为null。 但是现在我无法使用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

npmbower没有问题,我遇到的问题是系统代理。 因此,我们需要取消设置http_proxyhttps_proxy才能使其正常工作。

我所做的是:

unset http_proxy
unset https_proxy

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM