0
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 1 year has passed since last update.

はじめに

本記事は、公開済みのnpmパッケージを非推奨にしたい場合の設定変更方法について備忘録も兼ねてまとめたものになります。

非推奨に変更する

npm-deprecateコマンドを使用し対象のパッケージを非推奨に変更できます。

npm deprecate 対象のパッケージ名 "非推奨にする理由"

非推奨に変更後

変更後には対象のnpmパッケージのブラウザ画面で次のように警告がでるようになります。

image.png

対象のパッケージをインストールした際にも次のように警告が表示されます。

npm WARN deprecated パッケージ名 バージョン: 非推奨の理由
0
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
0
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?