Np: Locally installed `np` dependency failed on 'Verify user is authenticated'

Created on 9 Apr 2018  Â·  5Comments  Â·  Source: sindresorhus/np

It breaks on ✖ Verify user is authenticated but when I test npm whoami I get artivilla. I also have AddKeysToAgent yes in my ~/.ssh/config config file. Any other way I can I debug what might be causing this?

I've tried try ./node_modules/.bin/np or npx np which essentially both are accessing my local binaries.

Works when I run the command globally.

Current Setup: OSX Sierra 10.13.3
Current Versions: [email protected], [email protected], [email protected]

Most helpful comment

Finally I know why 🙌

See this issue https://github.com/yarnpkg/yarn/issues/5683

@garytryan try yarn login and then run yarn np

I wonder if could be fixed in np, although perhaps more a yarn bug itself.

All 5 comments

Your local repository doesn't change the npm registry, via config or .npmrc, by chance?

I was having a similar problem when using locally with yarn. Yarn was supplying a different registry to npm which caused authentication to fail.

It's the default registry specified as registry.npmjs.org/:_authToken= with a token value. Nothing set in the local config either.

I'm also having a similar problem.
If I run yarn np, I get a ✖ Verify user is authenticated message, when I test nom whoami I get my username back.

It works correctly if I run npx np

Finally I know why 🙌

See this issue https://github.com/yarnpkg/yarn/issues/5683

@garytryan try yarn login and then run yarn np

I wonder if could be fixed in np, although perhaps more a yarn bug itself.

@jamsinclair just got around to releasing a package. yarn login seems to do the trick

Was this page helpful?
0 / 5 - 0 ratings

Related issues

natesilva picture natesilva  Â·  5Comments

bennycode picture bennycode  Â·  4Comments

gillesdemey picture gillesdemey  Â·  3Comments

mikehardy picture mikehardy  Â·  6Comments

sindresorhus picture sindresorhus  Â·  4Comments