Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error from minimist-options: TypeError: Expected "token" default value to be of type "string", got "undefined" #190

Open
plasticrake opened this issue Oct 13, 2020 · 2 comments

Comments

@plasticrake
Copy link

See below for output when trying to run from fresh install.

May be related to #184.

$ npm install -g conventional-github-releaser
...
+ [email protected]
...
$ conventional-github-releaser       
/usr/local/lib/node_modules/conventional-github-releaser/node_modules/minimist-options/index.js:101
                                        throw new TypeError(`Expected "${key}" default value to be of type "${expectedType}", got ${prettyPrint(defaultType)}`);
                                        ^

TypeError: Expected "token" default value to be of type "string", got "undefined"
    at /usr/local/lib/node_modules/conventional-github-releaser/node_modules/minimist-options/index.js:101:12
    at Array.forEach (<anonymous>)
    at buildOptions (/usr/local/lib/node_modules/conventional-github-releaser/node_modules/minimist-options/index.js:64:23)
    at meow (/usr/local/lib/node_modules/conventional-github-releaser/node_modules/meow/index.js:125:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/conventional-github-releaser/src/cli.js:9:13)
    at Module._compile (internal/modules/cjs/loader.js:1138:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
    at Module.load (internal/modules/cjs/loader.js:986:32)
    at Function.Module._load (internal/modules/cjs/loader.js:879:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)

@tw0517tw
Copy link

seems a duplicate to #187
pending PR #189 should fix this

@jsakas
Copy link

jsakas commented Jul 29, 2021

Here is a workaround until someone gets around to merging that PR.

CONVENTIONAL_GITHUB_RELEASER_TOKEN=xxxxx conventional-github-releaser -p angular -r 1 -v

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants