npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Can't seem to use auth tokens when 2fa is enabled on publish

What I Wanted to Do

Tried to get my project, react-metrics-graphics, to publish to npm automatically per travis’s instructions:

http://docs.travis-ci.com/user/deployment/npm/

What Happened Instead

It failed, asking for a 2fa code:

https://travis-ci.org/metricsgraphics/react-metrics-graphics/builds/530777873

Reproduction Steps

Setting 2fa to fail only on login seems to “fix” the issue.

Details

Platform Info


This is a known limitation. See: Publish on CI with 2fa?


Gotcha, thanks for the reply! It is a bit frustrating that this isn’t documented anywhere obvious.