jspm安装
我遇到的错误
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 Unable to load registry github
warn Installation changes not saved.
最佳答案
这就是问题的解决方法。
输入命令jspmregistryconfiggithub并输入您的凭据,然后重试该命令。如果一切顺利,该命令应产生以下类似的响应
C:\Users\Umamaheswaran>jspm 注册表配置 github
您想设置您的 GitHub 凭据吗? [是]:是
如果使用双因素身份验证或避免使用密码,您可以在 https://github.com/settings/tokens 生成访问 token 。确保它具有 public_repo 范围访问权限。
输入您的 GitHub 用户名:XXXX
输入您的 GitHub 密码或访问 token :
您想测试这些凭据吗? [是]:是
ok GitHub 身份验证工作成功。
ok github注册中心配置成功。
关于node.js - jspm install err TypeError : must start with number, 缓冲区、数组或字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38308092/