menu

ZEIT

Our mission is to make cloud computing as easy and accessible as mobile computing. You can find our Next.js community here.

Channels
Team

Can't seem to log out and in again with now CLI 17.0.3

February 21, 2020 at 2:45pm

Can't seem to log out and in again with now CLI 17.0.3

February 21, 2020 at 2:45pm

Getting this error...

> now login
Now CLI 17.0.3
Error! An unexpected error occurred!
Error: The specified token is not valid
at Object.getUser (/Users/rob/.nvm/versions/node/v10.14.1/lib/node_modules/now/dist/index.js:2:2248948)
at process._tickCallback (internal/process/next_tick.js:68:7) Error: The specified token is not valid
at Object.getUser (/Users/rob/.nvm/versions/node/v10.14.1/lib/node_modules/now/dist/index.js:2:2248948)
at process._tickCallback (internal/process/next_tick.js:68:7)

February 21, 2020 at 2:51pm

Trying other v17 releases or other node versions via reinstalls doesn't work. But going back to npm i -g now@16.7.3 works.

  • reply
  • like

Try to remove ~/.now and login again.

  • reply
  • like

Thanks. Now that I'm logged in via 16.x I don't get the issue any more, but if encounter it again on v17.x I'll do that. (This happened after about 4 login/logouts over the past couple days.)

  • reply
  • like