我在安装 jspm 时遇到这个错误,
err Repo github: 找不到 Angular !
执行 jsp install github:angular
也不起作用。
jspm_config.json 位置是 https://plnkr.co/edit/2svUSwjVgCxyJ4iJHj1T?p=info
有人可以帮忙吗,在此先感谢
最佳答案
终于解决了这个问题,
Mac 上的本地 ~/.jspm/config 文件必须为 github 配置正确的 url,我最初配置为使用 https://github.com
作为 github 的 jspm 注册中心导致了这个问题,
我将其替换为 https://github.jspm.io
并删除了任何 auth 属性。它要求我生成授权 token ,一切都很顺利。
"github": {
"remote": "https://github.jspm.io",
"auth": "XXXXXXXXXX",
"maxRepoSize": 0,
"handler": "jspm-github"
}
关于javascript - 错误 repo github :angular not found! [jspm 安装],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51279295/