Qiita Careers powered by IndeedPR

求人サイト「Qiita Careers powered by Indeed」では、エンジニアのあなたにマッチした求人が見つかります。

4
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.

Denoのバージョンを上げたり下げたりする

4
Last updated at Posted at 2022-05-28

Node.jsやPythonだと公式Webサイトからインストーラーをダウンロードして…となるところですが(これが本当に辛い)、Denoはコマンド1発でバージョンを上げたり下げたりできます。

最新バージョンへ上げる

deno upgradeコマンドで最新バージョンへアップデートされます。

最新バージョンへ上げる
> deno upgrade

任意のバージョンをインストールする

--versionフラグで任意のバージョンをインストールできます。

特定のバージョンをインストールする
# v1.21.0をインストールしたい時
> deno upgrade --version=1.21.0

canary版の最新バージョンへ上げる

canary版は、開発者向けの先行公開バージョンです。
Denoの場合、GitHubリポジトリのmainブランチに新しいコミットが入るたびに、新しいcanaryバージョンがリリースされます。

canary版をインストールするには--canaryフラグを付けます。

最新のcanary版へアップデート
> deno upgrade --canary

canary版の任意のバージョンにする

GitHubのコミットハッシュを--versionフラグで指定します。

任意のcanary版をインストール
# コミット69be1f3cf7d11bb6b440f5d1e65988ed7c76f53dをインストールしたい時
> deno upgrade --canary --version=69be1f3cf7d11bb6b440f5d1e65988ed7c76f53d 

以上、Denoのバージョンを上げたり下げたりする方法でした。

4
0
1

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

Would you support @access3151fq?

About supporter service
access3151fq

お寿司食べたいです。

Support

@access3151fq's pickup articles

Comments

access3151fq
@access3151fq(ayame 113)

バージョンを下げたい時に一旦アンインストールしてから入れ直してる人がいたので、もっと簡単なやり方あるよということで書いてみた

0

Let's comment your feelings that are more than good

Being held Article posting campaign

2025年、生成AIを使ってみてどうだった?

2026-01-19 ~ 2026-02-27

View details
4
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?

Login to continue?

Login or Sign up with social account

Login or Sign up with your email address