'react-scripts' is not recognized as an internal or external command

前端 未结 18 2355
清歌不尽
清歌不尽 2020-11-30 00:21

I\'ve got a maven project, within which is JavaScript project cloned as a git sub-module. So the directory structure looks something like

mavenapp/src/main/jav

18条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-30 01:02

    If react-scripts is present in package.json

    If you see something like this "react-scripts": "2.1.3" in your pakage.json file then just type this command

    npm install

    If react-scripts is not present in package.json

    If there is nothing like "react-scripts" in your package.json file then probably you have not installed it.To do that type the following command and you will be all set

    npm install react-scripts --save

提交回复
热议问题