Search code examples
reactjsnpmwebstorm

I cannot open a new project WebStorm React


I cannot open a new project at the WebStorm React JS.

  • WebStorm v 2020.3.2
  • Node v 15.0.1

I am starting a new project and I got this error.

"C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npx-cli.js" --yes create-react-app .

npm ERR! code ENOENT

npm ERR! syscall open

npm ERR! path C:\projects\todo-new/package.json

npm ERR! errno -4058

npm ERR! enoent ENOENT: no such file or directory, open 'C:\projects\todo-
new\package.json'

npm ERR! enoent This is related to npm not being able to find a file.

npm ERR! enoent



npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\ivanh\AppData\Local\npm-cache\_logs\2021-03-08T18_52_52_706Z-debug.log

Done

Solution

  • I found a way. maybe it will help someone.

    npm uninstall -g create-react-app
    npm install -g npm@latest
    

    deleted folder node_modules