The react-scripts package provided by Create React App requires a dependency:

后端 未结 10 2596
夕颜
夕颜 2021-02-18 14:12

There might be a problem with the project dependency tree. It is likely not a bug in Create React App, but something you need to fix locally.

The react-scripts package p

10条回答
  •  花落未央
    2021-02-18 14:37

    I had the same problem and do all the suggested steps but the problem still, so, my error is that i have a reactApp inside other Javascript App i had this structure.

    --MyProjects
    ----NodeJsApp
    ----node_modules of NodeJsApp
    ----package.json of NodeJsApp
    ----ReactApp
    ------node_modules of ReactApp
    ------package.json of ReactApp
    

    The problem solved to me deleting my ReactApp node_modules directory, then i do a reestructure of my directories because i have a disaster.

    --MyProjects
    ----NewDirectory (inside all about NodeJsApp)
    ------node_modules of NodeJsApp
    ------package.json of NodeJsApp
    ----ReactApp
    ------package.json of ReactApp
    

    After that i do :

    npm install
    

    and then npm start and my problem has fixed, i think that the problem is that the parent directory cant have a javascript /nodeJs/ project or something that have node_modules .

提交回复
热议问题