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 5 years have passed since last update.

nodejs系パッケージのバージョンを操作する

0
Last updated at Posted at 2018-08-21

発端

  • かなり久しぶりにelectronのアプリをビルドしようと思った際にバージョンに起因するエラーが発生した。
  • reactnativeやcordovaなど他の環境を触った際にnpm系のパッケージを最新にしたのが原因っぽい。
  • 正常に動作する安定版のバージョンに変更する。

実行内容

  • バージョンを確認
$ npm view {package名} dist-tags
ex)
$ npm view electron dist-tags
{ latest: '2.0.3', beta: '3.0.0-beta.1' }
  • 指定したバージョンをインストールする
$ npm install {パッケージ名}@バージョン -g
ex)
$ npm install electron@2.0.3 -g
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?