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

前端 未结 18 2359
清歌不尽
清歌不尽 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 00:40

    For Portable apps change

    package.json

    as follows

    "scripts": {
        "start": "node node_modules/.bin/react-scripts start",
        "build": "node node_modules/.bin/react-scripts build",
        "test": "node node_modules/.bin/react-scripts test",
        "eject": "node node_modules/.bin/react-scripts eject"
      }
    

提交回复
热议问题