I am trying to install react using the terminal command:
npm install -g create-react-app
But it doesn't seem to be working and I get the following output:
Does anyone know what might be the problem here?
正如我在截图中看到的,您只需要使用此命令作为管理员sudo npm install -g create-react-app
。
In case you stumbled here because of this error:
-bash: create-react-app: command not found
Then you need to do this:
npx create-react-app yourApp
Essentially you need to prepend create-react-app
with npx
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.