我下面https://hackernoon.com/simple-react-development-in-2017-113bd563691f
我是新來React
生態系統和我剛纔安裝Yarn
無法安裝CREATE-反應,應用
➜ WebstormProjects yarn --version
0.23.2
然後我安裝created-react-app
如文檔提到
➜ WebstormProjects yarn global add create-react-app
yarn global v0.23.2
warning No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "[email protected]" with binaries:
- create-react-app
warning No license field
✨ Done in 0.82s.
然後,我試着創建應用程序
➜ WebstormProjects create-react-app myproject
zsh: command not found: create-react-app
然後,我當家主持https://github.com/facebookincubator/create-react-app使用npm
作爲
➜ WebstormProjects npm install -g create-react-app
npm ERR! addLocal Could not install /Users/Harit.Himanshu/WebstormProjects/create-react-app
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/Cellar/node/7.9.0/bin/node" "/usr/local/bin/npm" "install" "-g" "create-react-app"
npm ERR! node v7.9.0
npm ERR! npm v4.2.0
npm ERR! No name provided in package.json
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /Users/Harit.Himanshu/.npm/_logs/2017-04-15T03_06_22_478Z-debug.log
的node
和npm
版本我已經被
➜ WebstormProjects node --version
v7.9.0
➜ WebstormProjects npm --version
4.2.0
➜ WebstormProjects
我在做什麼錯誤嘗試安裝?
你不會碰巧在同一個路徑下有一個名爲'create-react-app'的目錄,你會......嗎? –