Qstairs

現役AIベンチャーCTOの知見、画像認識(人工知能、Deep Learning)を中心とした技術ノウハウをアップしていきます

広告

Reactのアプリを作ろうと思ったら「Create React App requires Node 14 or higher. Please update your version of Node.」が出たときにやること

f:id:qstairs:20171102004518j:plain

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
広告