I wanted to set up the config on a new repo, and this script threw some errors, likely because there is no GitHub repo on NPM package for it yet. Because of the errors, I'm not certain that the setup actually succeeded or if it's fine but just complained about the lack of remote repo/package info.
npx: installed 154 in 6.467s
[HttpError: Not Found] {
message: 'Not Found',
statusCode: 404,
headers: {
date: 'Tue, 05 May 2020 23:27:41 GMT',
'content-type': 'application/json; charset=utf-8',
'content-length': '88',
connection: 'close',
server: 'GitHub.com',
status: '404 Not Found',
'x-ratelimit-limit': '5000',
'x-ratelimit-remaining': '4999',
'x-ratelimit-reset': '1588724861',
'x-oauth-scopes': 'repo',
'x-accepted-oauth-scopes': 'repo',
'x-github-media-type': 'github.v3; param=symmetra-preview; format=json',
'access-control-expose-headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset',
'access-control-allow-origin': '*',
'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
'x-frame-options': 'deny',
'x-content-type-options': 'nosniff',
'x-xss-protection': '1; mode=block',
'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
'content-security-policy': "default-src 'none'",
vary: 'Accept-Encoding, Accept, X-Requested-With',
'x-github-request-id': 'CE19:DAE8:32B4CEF:3B17B1E:5EB1F66C'
},
body: {
message: 'Not Found',
documentation_url: 'https://developer.github.com/v3/repos/#get'
},
method: 'GET',
endpoint: '/repos/null/labels'
}
(node:56257) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:56257) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.