【发布时间】:2018-07-19 19:23:49
【问题描述】:
我在安装 jspm 时遇到此错误,
err Repo github:angular not found!
执行 jsp install github:angular 也不起作用。
jspm_config.json 位置是 https://plnkr.co/edit/2svUSwjVgCxyJ4iJHj1T?p=info
有人可以帮忙吗,在此先感谢
【问题讨论】:
标签: javascript jspm
我在安装 jspm 时遇到此错误,
err Repo github:angular not found!
执行 jsp install github:angular 也不起作用。
jspm_config.json 位置是 https://plnkr.co/edit/2svUSwjVgCxyJ4iJHj1T?p=info
有人可以帮忙吗,在此先感谢
【问题讨论】:
标签: javascript jspm
最后,我能够解决问题,
mac 上的本地 ~/.jspm/config 文件必须为 github 配置正确的 url,我最初配置为使用 https://github.com 作为导致问题的 github 的 jspm 注册表,
我将其替换为 https://github.jspm.io 并删除了任何 auth 属性。它要求我生成身份验证令牌,一切顺利。
"github": {
"remote": "https://github.jspm.io",
"auth": "XXXXXXXXXX",
"maxRepoSize": 0,
"handler": "jspm-github"
}
【讨论】:
%LOCALAPPDATA%/.jspm/config