node.js - jspm install err TypeError : must start with number, 缓冲区、数组或字符串

标签 node.js

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/

相关文章:

node.js, process.kill() 和 process.exit(0), 哪一个可以杀死进程?

node.js - 尝试将存储在 aws S3 中的图像显示到 React 应用程序

node.js - 使用 for each in node js sequelize 将数据存储在数组中

node.js - 如何禁用 connect-assets 文件名摘要

node.js - npm install --no-audit --save --save-exact --loglevel 错误 react react-dom react 脚本cra-模板失败

javascript - phantoms 2 可以用 spawn 启动吗?

node.js - Laravel 和 bootstrap glyphicons - 文件复制到哪里,如何设置相对路径以及如何解决 cachebusting?

node.js - 尝试通过 npm 在 NodeJS 中安装 websocket 模块时出错

node.js - Sequelize - 嵌套关联查询只检索 1 个数组数据?

angularjs - 如何访问 AngularJS 中 Passportjs 设置的 Cookie