You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, npm install piexifjs will install a beta version.
When you want to install stable version, you run npm install piexifjs@^1.
However, it causes confusion.
Please consider to use npm dist-tag. npm dist-tag can assign a tag (e.g. dev, beta, latest) to the specific version.
For example, you run npm dist-tag add piexifjs@1.0.4 latest, everyone can install v1.0.4 via only npm install piexifjs.
And, you run npm dist-tag add piexifjs@2.0.0-beta.7 beta, everyone can install v2.0.0-beta.7 via npm install piexifjs@beta.
See also, https://docs.npmjs.com/cli/dist-tag
Currently,
npm install piexifjs
will install a beta version.When you want to install stable version, you run
npm install piexifjs@^1
.However, it causes confusion.
Please consider to use
npm dist-tag
.npm dist-tag
can assign a tag (e.g. dev, beta, latest) to the specific version.For example, you run
npm dist-tag add piexifjs@1.0.4 latest
, everyone can install v1.0.4 via onlynpm install piexifjs
.And, you run
npm dist-tag add piexifjs@2.0.0-beta.7 beta
, everyone can install v2.0.0-beta.7 vianpm install piexifjs@beta
.See also, https://docs.npmjs.com/cli/dist-tag
And also, when you publish new beta version, you can run
npm publish --tag beta
.See https://docs.npmjs.com/cli/publish
Because English is not good enough, I write it in Japanese.
英語が不得意なため、日本語でも書かせていただきます。
現在、piexifjs は、バージョンを指定しない場合、β版がインストールされるようになっています。
しかし、実用的には標準で安定版がインストールされるのが良いかと思われます。
解決方法としては、
npm dist-tag
で特定バージョンにタグをつける方法があります。(詳しくは https://docs.npmjs.com/cli/dist-tag をご覧ください)
npm は、バージョン指定をしない場合、
latest
タグに紐付いたものをインストールします。そのため、
npm dist-tag add piexifjs@1.0.4 latest
としていただけると、npm install piexifjs
で安定版が入るようになります。もちろん、同様に
beta
タグを付けるようにすれば、npm install piexifjs@beta
でインストールできます。また、次のβ版を公開するときに
npm publish --tag beta
とすれば、β版を更新できます。こちらも https://docs.npmjs.com/cli/publish を参照してください。
ぜひ、ご一考いただければ幸いです。
The text was updated successfully, but these errors were encountered: