You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No, I've had exactly the same complaint when I publish. But I've only needed to do that infrequently so far, so haven't spent time on a good solution. I don't think that pulling in credentials from the user's home directory by default would be the right answer, but an explicit opt-in via environment variable to do that might be OK.
If you have any better solutions for the credentials problem, please feel free to suggest ideas.
The fix for this, that I haven't gotten around to implementing, and would love a pull request for, is to allow the config file for a container (the node file in the docs) to specify extra command line arguments for both the command inside npm and for docker. The trick is to make this work nicely with extra arguments or DOCKER_ARGS specified on the command line itself.
You could then stack things by doing something like the following for your ./bin/npm file
Can you think of a better way to deal with npm credentials? They need to be saved across invocations.
This is what I came up with:
bin/npm --userconfig=./.npmuser adduser
and I have to specify --userconfig every time I need to use NPM's credentials. Which is annoying.
The text was updated successfully, but these errors were encountered: