1

运行此命令

yarn semantic-release-cli setup

并给出这些答案

? What is your npm registry? https://registry.yarnpkg.com/
? Which authentication method is this npm registry using? Token based
? What is your npm username? ...
? What is your npm password? [hidden]
? What is your GitHub username? ...
? What is your GitHub password? [hidden]

因此错误而失败(为便于阅读而进行了修剪),迫使我重复调查问卷以重试。

StatusCodeError: 404 - {"message":"Not Found","documentation_url":"https://docs.github.com/rest"}
    at new StatusCodeError (C:\Users\User\PhpstormProjects\corner-radius\node_modules\request-promise-core\lib\errors.js:32:15)
    at Request.plumbing.callback (C:\Users\User\PhpstormProjects\corner-radius\node_modules\request-promise-core\lib\plumbing.js:104:33)
    at Request.RP$callback [as _callback] (C:\Users\User\PhpstormProjects\corner-radius\node_modules\request-promise-core\lib\plumbing.js:46:31)
    at Request.self.callback (C:\Users\User\PhpstormProjects\corner-radius\node_modules\request\request.js:185:22)
    at Request.emit (events.js:314:20)
    at Request.<anonymous> (C:\Users\User\PhpstormProjects\corner-radius\node_modules\request\request.js:1154:10)
    at Request.emit (events.js:314:20)
    at IncomingMessage.<anonymous> (C:\Users\User\PhpstormProjects\corner-radius\node_modules\request\request.js:1076:12)
    at Object.onceWrapper (events.js:420:28)
    at IncomingMessage.emit (events.js:326:22)
    at endReadableNT (_stream_readable.js:1252:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) 
{
  statusCode: 404,
  error: {
    message: 'Not Found',
    documentation_url: 'https://docs.github.com/rest'
  },
  options: {
    resolveWithFullResponse: true,
    method: 'POST',
    url: 'https://api.github.com/authorizations',
    json: true,
    auth: {
      username: '...',
      password: '...',
      endpoint: 'https://api.github.com',
      user: '...',
      pass: '...'
    },
    headers: { 'User-Agent': 'semantic-release' },
    body: { scopes: [Array], note: 'semantic-release-corner-radius-wpmx8n0' },
    callback: [Function: RP$callback],
    transform: undefined,
    simple: true,
    transform2xxOnly: false
  },
  ...
}
4

0 回答 0