npm ERR! code ENOENT – NEXT JS – Installation Issue : SOLUTION

Solution for Error when trying to install Next JS :

npm ERR! code ENOENT
npm ERR! syscall lstat

npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path C:\Users\sreer.LAPTOP-I1K42A3B\AppData\Roaming\npm
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Users\sreer.LAPTOP-I1K42A3B\AppData\Roaming\npm'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

SOLUTION

Reinstall npx using the below command will solve the next js installation ENOENT error

Run code: npm i -g npx

About the Author: smartcoder

You might like

Leave a Reply

Your email address will not be published. Required fields are marked *