Np: Private repository doesn't support "whoami"

Created on 24 Mar 2020  路  2Comments  路  Source: sindresorhus/np

Hello!

Thank you for this great tool!

However, we are using private Nexus Repository to store our npm packages and it seems that it doesn't support whoami command. It makes np to fail with an error that we can't fix on our side.

Does this tool really need to execute this command? Would it be possible to provide another way to specify the username?

Thanks!

Most helpful comment

I've similar issue, I would suggest to add a flag for skipping registry authentication checks.
I'm using a workaround by setting NODE_ENV=test, but would be great to have a proper flag for that.

@developit what do you think about?

All 2 comments

Any ideas which commands it supports? We have np using whoami for authenticating if user is logged in to the npm registry. I do not think adding a quick fix for a private repo sounds feasible.

I've similar issue, I would suggest to add a flag for skipping registry authentication checks.
I'm using a workaround by setting NODE_ENV=test, but would be great to have a proper flag for that.

@developit what do you think about?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sindresorhus picture sindresorhus  路  4Comments

gillesdemey picture gillesdemey  路  3Comments

jescalan picture jescalan  路  3Comments

natesilva picture natesilva  路  5Comments

inker picture inker  路  4Comments