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
Fixes ENEEDSAUTH
errors + add more tests, options and types
#44
Conversation
Signed-off-by: Charlike Mike Reagent <opensource@tunnckocore.com>
…an#42 Signed-off-by: Charlike Mike Reagent <opensource@tunnckocore.com>
Signed-off-by: Charlike Mike Reagent <opensource@tunnckocore.com>
Yup. Btw, consider switching to |
@@ -5,14 +5,18 @@ import getopts = require('getopts') | |||
const opts = getopts(process.argv.slice(2), { | |||
alias: { | |||
h: 'help', | |||
n: ['npmClient', 'npm-client'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need two aliases. There is already a shorthand
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I use to do this cuz don't know what "the next arg parser" is doing. :D
I don't care what CLI utils is used. Switch it if you want |
Awesome. It introduces only greater and prettier things. :) |
On my system this fails. I use nvs and it cannot find the npm CLI |
Interesting. Can you provide some paths? Are you using Windows? May still need updates to the Just to note, I tried I'm going to publish new release of |
I use Linux. My PATH is
|
Is the |
|
So where are the packages and node versions? In the home, home bin? What's Please try and give the output.
|
Why don't just run the CLI by name? |
Didn't worked either :D That was the first try. It was still using local Best would be Can you try
no matter the node version |
these commands successfully find the locations of the CLIs |
Same here. I came with another rewrite which in first glance is working (when running just |
Sorry for vanishing. I think using |
npm needs auth
(and I'm logged) #41all-module-paths
package for better resolving of CLI bin/pathoptions.run
which can be replaced to customize execa runningnpm publish
when publishingExample custom run()
Types
Default options