首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我无法从npm或bower下载包。

我无法从npm或bower下载包。
EN

Stack Overflow用户
提问于 2016-09-15 03:43:42
回答 1查看 174关注 0票数 0

我使用npm和bower与我的移动互联网连接没有任何问题,然后我连接到我的大学代理并在配置(npm config set proxy)中更改了代理,然后我再次返回使用我自己的移动互联网并将代理值更改为空。但是现在我不能使用npm或bower下载任何包。

我的用户配置文件(~/.npmrc)

代码语言:javascript
复制
;;;;
; 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
EN

回答 1

Stack Overflow用户

发布于 2016-09-15 06:36:41

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

我所做的是:

代码语言:javascript
复制
unset http_proxy
unset https_proxy
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39498467

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档