node 搭建react方法如下
方法一:
npm install create-react-app
create-react-app 項目名
方法二:
npx create-react-app 項目名
npm 從5.2版開始,增加了 npx 命令。npx create-react-app 項目名
簡單說就是將create-react-app
這個依賴包下載到一個臨時目錄中,使用後再將其刪除。
關於npx的一些網上找了一個說的比較好的博客
http://www.ruanyifeng.com/blog/2019/02/npx.html