nodejs / help

:sparkles: Need help with Node.js? File an Issue here. :rocket:
1.44k stars 276 forks source link

erroe installing react #4331

Closed noblez-90z closed 3 weeks ago

noblez-90z commented 5 months ago

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.

mwelwankuta commented 5 months ago

@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

RedYetiDev commented 1 month ago

@noblez-90z did the suggested answer work?

Also, make sure that you are downloading the latest version of React/Node.js/NPM, etc

noblez-90z commented 3 weeks ago

Thank you for your reply it is working now

On Sat, 1 Jun 2024 at 8:57 PM, Aviv Keller @.***> wrote:

@noblez-90z https://github.com/noblez-90z did the suggested answer work?

Also, make sure that you are downloading the latest version of React/Node.js/NPM, etc

— Reply to this email directly, view it on GitHub https://github.com/nodejs/help/issues/4331#issuecomment-2143566260, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBJ7N6ONAX2HMJGYF7WFXA3ZFIRQZAVCNFSM6AAAAABCC6JYDSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBTGU3DMMRWGA . You are receiving this because you were mentioned.Message ID: @.***>