Unauthorized response from GitHub API on Appveyor

后端 未结 2 1394
萌比男神i
萌比男神i 2021-01-23 03:22

We just started with a new project and trying to get CI working via Appveyor. It is an Aurelia web application so we need jspm on the build server.

相关标签:
2条回答
  • 2021-01-23 03:55

    It is best to take this token from jspm registry export github after configuring the credentials locally in order to use the exact same algorithm as jspm instead of doing a manual encoding.

    If you really want manual encoding, the auth token actually takes the value of new Buffer(encodeURIComponent(username) + ':' + encodeURIComponent(password)).toString('base64').

    0 讨论(0)
  • 2021-01-23 04:00

    After contact with the Appveyor team we figured oud that the node version was the problem. Installing the stable version of Node works like a charm:

    ps: Install-Product node stable
    
    0 讨论(0)
提交回复
热议问题