- 查看并下载的node版本
brew info node
brew install node - 下载的node自带npm和npx
问题:
➜ ~ npx create-react-app my-app
npm ERR! code ERR_INVALID_URL
npm ERR! Invalid URL
npm ERR! A complete log of this run can be found in:
执行 sudo npx create-react-app my-app,可能是权限问题