1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

npmパッケージを公開するときにやらなきゃいけないこと

Posted at

npm publishを実行しようとしたらできなくて泣きそうになった:

failure.sh
$ npm publish ./
npm notice
npm notice package: newman-reporter-test@1.0.0
npm notice === Tarball Contents ===
npm notice 557B package.json
npm notice === Tarball Details ===
npm notice name:          newman-reporter-test
npm notice version:       1.0.0
npm notice package size:  361 B
npm notice unpacked size: 557 B
npm notice shasum:        70f20b94eb8816931feda3f041b06bb0647aaa99
npm notice integrity:     sha512-R2P6RDOWq6PpW[...]fJEvcJ5qmFgKw==
npm notice total files:   1
npm notice
npm ERR! code E403
npm ERR! 403 403 Forbidden - PUT https://registry.npmjs.org/newman-reporter-test - Forbidden
npm ERR! 403 In most cases, you or one of your dependencies are requesting
npm ERR! 403 a package version that is forbidden by your security policy.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\xxxxxxx\AppData\Roaming\npm-cache\_logs\2021-05-28T22_03_29_322Z-debug.log

以下の手続きが済んでいることを確認ししたら大丈夫だった:

  • npm loginコマンドでログインしている
  • ユーザー登録後の、メールアドレス確認が完了している
success.sh
$ npm publish ./
npm notice
npm notice package: newman-reporter-test@1.0.0
npm notice === Tarball Contents ===
npm notice 557B package.json
npm notice === Tarball Details ===
npm notice name:          newman-reporter-test
npm notice version:       1.0.0
npm notice package size:  361 B
npm notice unpacked size: 557 B
npm notice shasum:        70f20b94eb8816931feda3f041b06bb0647aaa99
npm notice integrity:     sha512-R2P6RDOWq6PpW[...]fJEvcJ5qmFgKw==
npm notice total files:   1
npm notice
+ newman-reporter-test@1.0.0
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?