sindresorhus / np

A better `npm publish`
MIT License
7.56k stars 298 forks source link

OTP tokens not working (npm ERR! 404 Not found: $OTP) #295

Closed niftylettuce closed 6 years ago

niftylettuce commented 6 years ago
λ ~/Projects/lass/ master np

Publish a new version of lass (current: 1.0.0)

Commits:
- fix: new devDependencies -> dependencies  3334653
- v1.0.0  cd51a23
- chore: fixed prerequisites -> requirements  9e5a45a
- feat: added commitlint/fixpack/npm-check-updates, added post test  2c7877c
- Fixed version to 1.0.0 in README  8f25d44

? Select semver increment or specify new version (Use arrow keys)
❯ patch     1.0.1
  minor     1.1.0
  major     2.0.0
  prepatch  1.0.1-0
  preminor  1.1.0-0
  premajor  2.0.0-0
  prerelease    1.0.1-0
  ──────────────
  Other (specify)
λ ~/Projects/lass/ master np --no-yarn

Publish a new version of lass (current: 1.0.0)

Commits:
- fix: new devDependencies -> dependencies  3334653
- v1.0.0  cd51a23
- chore: fixed prerequisites -> requirements  9e5a45a
- feat: added commitlint/fixpack/npm-check-updates, added post test  2c7877c
- Fixed version to 1.0.0 in README  8f25d44

? Select semver increment or specify new version Other (specify)
? Version 1.0.2
? Will bump from 1.0.0 to 1.0.2. Continue? Yes
 ✔ Prerequisite check
 ✔ Git
 ✔ Cleanup
 ✔ Installing dependencies using npm
 ✔ Running tests using npm
 ✔ Bumping version using npm
 ✖ Publishing package using npm
   → npm ERR!     /Users/user/Projects/lass/npm-debug.log
   Pushing tags

✖ Command failed: npm publish --otp 123456
npm ERR! Darwin 16.7.0
npm ERR! argv "/Users/user/.nvm/versions/node/v8.10.0/bin/node" "/Users/user/Projects/lass/node_modules/.bin/npm" "publish" "--otp" "123456"
npm ERR! node v8.10.0
npm ERR! npm  v3.10.10
npm ERR! code E404

npm ERR! 404 Not found : 123456
npm ERR! 404
npm ERR! 404  '123456' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/user/Projects/lass/npm-debug.log
sindresorhus commented 6 years ago

You’re using a too old npm version.