Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

7
Cannot Create Next App On Windows
Post Flair (click to view more posts with a particular flair)
Post Body

I've used npx create-next-app@latest more times than I can count but it keeps throwing this error on my new rig:

npm ERR! code ENOENT

npm ERR! syscall lstat

npm ERR! path C:\Users\renegadellama\AppData\Roaming\npm

npm ERR! errno -4058

npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Users\renegadellama\AppData\Roaming\npm'

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\renegadellama\AppData\Local\npm-cache_logs\2023-07-02T04_19_41_314Z-debug-0.log

I've done a ton of troubleshooting and can't seem to figure this out. I've tired:

  1. Running the command in PowerShell as admin
  2. npm clean cache --force
  3. npx create-next-app@latest app-name & --use-npm

For context my node --version is 18.16.1 and my npm --version is 9.5.1

Seems like Node is working fine. I've cloned a few of my old repos and npm run dev spins them up just fine.

Anyone know how to fix this?

Solved

Just had to create the \AppData\Roaming\npm directory. Not sure why this wasn't created when Node was installed multiple times but there's the fix if anyone encounters this error in the future.

Author
Account Strength
100%
Account Age
10 years
Verified Email
Yes
Verified Flair
No
Total Karma
16,198
Link Karma
3,903
Comment Karma
12,207
Profile updated: 1 week ago
Posts updated: 1 year ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 year ago