3

I've installed Node.js for Windows and I'm trying to create a new React project via npm. Upon typing 'npx create-react-app projectName', I receive the following error:

ENOENT: no such file or directory, lstat 'C:\Users\Username\AppData\Roaming\npm'

Does anyone know how to fix this error?

Hasitha
  • 31
  • 2

1 Answers1

1

I got the exact same error with npx nuxi@latest init my-app and the solution was surprisingly simple. Just create that missing directory.

mkdir "%AppData%\npm"
ubershmekel
  • 11,864
  • 10
  • 72
  • 89