LoginSignup
0
0

More than 1 year has passed since last update.

【Windows10】Please update your version of Node.と言われたとき

Posted at

Windows10でPlease update your version of Node.と言われたとき、つまづいたので備忘録

現象

npx create-react-app . --template typescript
npx: 67個のパッケージを14.129秒でインストールしました。
You are running Node 12.18.1.
Create React App requires Node 14 or higher.
Please update your version of Node.

検索すると、下記を実行するように記載されているが、Windowsだとエラーになる。

npm cache clean -f
npm install -g n


npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for n@8.2.0: wanted {"os":"!win32","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! notsup Valid OS:    !win32
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   win32
npm ERR! notsup Actual Arch: x64

npm ERR! A complete log of this run can be found in:
npm ERR! 

どうやら、nはWindowsではネイティブにサポートされていないらしい。

解決策

こちらにたすけられました。
https://www.suzu6.net/posts/295-node-update-windows/

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