【问题标题】:jspm install err TypeError: must start with number, buffer, array or stringjspm install err TypeError: must start with number, buffer, array or string
【发布时间】:2016-09-30 23:08:48
【问题描述】:

jspm install

我遇到的错误

TypeError: must start with number, buffer, array or string
         at fromObject (buffer.js:158:9)
         at new Buffer (buffer.js:62:10)
         at decodeCredentials (E:\Exinda_Cloud\qx-cloud-fe\node_modules\jspm\node_modules\jspm-github\github.js:55:14)
         at Object.GithubLocation (E:\Exinda_Cloud\qx-cloud-fe\node_modules\jspm\node_modules\jspm-github\github.js:112:19)
         at Object.exports.load (E:\Exinda_Cloud\qx-cloud-fe\node_modules\jspm\lib\registry.js:73:56)
         at new RegistryPath (E:\Exinda_Cloud\qx-cloud-fe\node_modules\jspm\lib\config\loader.js:264:33)
         at Config.read (E:\Exinda_Cloud\qx-cloud-fe\node_modules\jspm\lib\config\loader.js:127:26)
         at E:\Exinda_Cloud\qx-cloud-fe\node_modules\jspm\lib\config.js:100:26
         at process._tickCallback (node.js:369:9)
         at Function.Module.runMain (module.js:443:11)
         at startup (node.js:139:18)
         at node.js:968:3

err 无法加载注册表 github

警告安装更改未保存。

【问题讨论】:

  • 你需要先配置你的GIT,在你尝试你的jspm install命令之前尝试执行jspm registry config github

标签: node.js


【解决方案1】:

这就是解决问题的方法。

输入命令 jspm registry config github 并输入您的凭据,然后重试该命令。如果一切顺利,该命令应该会产生以下类似的响应

C:\Users\Umamaheswaran>jspm 注册表配置 github

您想设置您的 GitHub 凭据吗? [是]:是的

如果使用双重身份验证或避免使用您的密码,您可以在https://github.com/settings/tokens 生成访问令牌。确保它具有 public_repo 范围访问权限。

输入你的 GitHub 用户名:XXXX
输入您的 GitHub 密码或访问令牌:

您想测试这些凭据吗? [是]:是的
好的 GitHub 身份验证工作成功。
ok Registry github 配置成功。

【讨论】:

    猜你喜欢
    • 2016-05-02
    • 2018-06-07
    • 1970-01-01
    • 2012-05-15
    • 1970-01-01
    • 1970-01-01
    • 2019-12-29
    • 2021-11-23
    相关资源
    最近更新 更多