create-react-app, installation error (“command not found”)

后端 未结 8 1443
遇见更好的自我
遇见更好的自我 2020-12-08 07:09

I have installed create-react-app exactly as instructed on the facebook instruction page (https://facebook.github.io/react/blog/2016/07/22/create-apps-with-no-configuration.

8条回答
  •  执念已碎
    2020-12-08 07:51

    You are able to apply the following solution:

    $ npm config set prefix /usr/local
    $ sudo npm install -g create-react-app
    $ create-react-app my-app
    

提交回复
热议问题