help icon indicating copy to clipboard operation
help copied to clipboard

erroe installing react

Open noblez-90z opened this issue 1 year ago • 1 comments

Details

> npx create-react-app first-project
npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path C:\Users\dj waterside\AppData\Roaming\npm
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, lstat 'C:\Users\dj waterside\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: C:\Users\dj waterside\AppData\Local\npm-cache\_logs\2024-01-20T06_09_40_398Z-deb0T06_09_40_398Z-debug-0.log
>

Node.js version

version 20.5.1

Example code

No response

Operating system

windows

Scope

installation

Module and version

Not applicable.

noblez-90z avatar Jan 20 '24 06:01 noblez-90z

@noblez-90z, running the below command will create the npm directory which currently doesn't exist.

npm install npm -g

as an alternative you can manually create the folder.

mkdir 'C:\Users\dj waterside\AppData\Roaming\npm'

if non of that works, you may try running the command prompt as an administrator when running npx create-react-app first-project

i hope this works for you

mwenku avatar Jan 20 '24 09:01 mwenku