Reactのアプリを作ろうと思ったら「Create React App requires Node 14 or higher. Please update your version of Node.」が出たときにやること
Reactのアプリを作ろうと思ったら
「Create React App requires Node 14 or higher. Please update your version of Node.」
が出ました。
環境
起きたこと
$ npx create-react-app react-demo npx: installed 67 in 6.045s You are running Node 10.19.0. Create React App requires Node 14 or higher. Please update your version of Node.
やること
curl -sL https://deb.nodesource.com/setup_16.x -o nodesource_setup.sh Inspect the contents of the downloaded script with nano (or your preferred text editor): nano nodesource_setup.sh When you are satisfied that the script is safe to run, exit your editor, then run the script with sudo: sudo bash nodesource_setup.sh sudo apt install nodejs node -v