Skip to content

erroe installing react #4331

Closed
Closed

Description

@noblez-90z

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.

Activity

  1. mwenku commented on Jan 20, 2024

    @mwenku

    @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

  2. avivkeller commented on Jun 1, 2024

    @avivkeller
    Member

    @noblez-90z did the suggested answer work?

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

  3. noblez-90z commented on Jun 12, 2024

    @noblez-90z
    Author
  4. added
    answered🎉 Yay! The issue has been resolved, or the question has been answered.
    and removed
    needs more infoissues that need more info from the author
    on Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    answered🎉 Yay! The issue has been resolved, or the question has been answered.npm

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions