javascript - JSPM 无法在代理后面下载 github 包
问题描述
我在 JSPM 和 socks 隧道之间使用 http 代理。
目前正在下载 npm 包,但 jspm 无法安装 github 包。
我得到的错误来自 project/node_modules/jspm-github/github.js,当我运行例如jspm install github:aspnet/jquery-validation-unobtrusive@3.2.6
err Error on getPackageConfig for github:aspnet/jquery-validation-unobtrusive
TypeError: Cannot read property 'match' of undefined
我在项目中的 .npmrc:
loglevel=error
progress=false
save-prefix='~'
strict-ssl=false
registry=https://nexus.vpro.nl/content/groups/npm-all/
audit=false
我的 .zprofile
# HTTP Proxy
httpProxyServer=http://127.0.0.1:8080
httpsProxyServer=http://127.0.0.1:8080
export http_proxy=$httpProxyServer
export https_proxy=$httpsProxyServer
export HTTP_PROXY=$httpProxyServer
export HTTPS_PROXY=$httpsProxyServer
export npm_config_proxy="http://127.0.0.1:8080/"
export npm_config_https_proxy="http://127.0.0.1:8080/"
和我的 .gitconfig
[http]
proxy = http://127.0.0.1:8080
sslVerify = false
[https]
proxy = http://127.0.0.1:8080
sslVerify = false
[url "https://"]
insteadOf = git:/
解决方案
推荐阅读
- numpy - 使用 numpy 和 matplotlib 绘制 sympy 函数
- cordova - Cordova Windows 平台
- itext - 段落或图像的 SetFixedPosition 导致显示顺序错误
- javascript - Laravel ajax url 在生产服务器上不起作用
- java - 如何使用 Selenium 检查叠加层上的文本?
- reactjs - Waiting for request to finish before performing operation ReactJS
- python - Modify CSV file input from spiders while launching CrawlerProcess / Scrapy
- continuous-integration - 自托管代理未显示在代理池下拉列表中
- android - 没有找到适合 putExtra 的方法
- laravel-5 - 在 laravel 中提供页面的链接