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?

Winget経由でWindowsにNodeJSをインストールした

Posted at

無事インストールできたのでその時のメモ

はじめに

Googleで「winget nodejs」と雑に検索すると、以下のコマンドでインストールできるとのことだった。(参考: https://zenn.dev/exmedia/articles/install-npm-on-windows11-via-winget)

winget install -e --id OpenJS.NodeJS.LTS

しかし自分の環境ではパッケージが見つかりませんと表示され、インストールできなかったため、いろいろと原因を探った。

解決

どうやら自分の環境だと、なぜかパッケージのソースにwingetがなかった。
以下のコマンドでソースを追加してから上記コマンドで無事にnodejsをインストールすることができた。

winget source add winget https://cdn.winget.microsoft.com/cache
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?