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?

Ubuntu24.04LTSで新しいnodejsが使えるようにする

Posted at

Wrangler使おうとしたら以下のメッセージが。

Wrangler requires at least Node.js v20.0.0. You are using v18.19.1. Please update your version of Node.js.

Ubuntu 24.04 LTS公式のnodejsはv18.19.1なのでそのままでは動かせないのでnvmを使って新しいバージョンを入れる

$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
$ source ~/.bashrc
$ nvm --version
0.39.0
$ nvm install --lts
$ node --version
v22.17.0
$ npm install wrangler --save-dev
$ npx wrangler login
...
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?