node創建react項目

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章