DEV Community

Thiago
Thiago

Posted on

error to install next.js

I was trying to install next.js using their tutorial and got this error message: "npm ERR! enoent ENOENT: no such file or directory, lstat C:\Users\mariobros\AppData\Roaming\npm

This problem can be fixed by creating an empty folder called "npm" at the directory C:\Users\mariobros\AppData\Roaming\

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs