Skip to content

Error: ENOENT: no such file or directory, stat 'C:\Users\username\Documents\My Music' #1

Description

@hetp111

I am trying to run this react app: https://github.com/JackHeTech/multiplayer-chess-game

It works when I download the repo and do npm install and then npm start in that folder itself.

But when I try to recreate the project myself using create-react-app with these steps (which you mentioned in the video):

npx create-react-app frontend
*copy the required files from repo to frontend folder*
npm install <p1> <p2> ...
npm start

That doesn't work and shows these errors:

Compiling...
C:\Users\username\Documents\Projects\chess_server\frontend\node_modules\react-scripts\scripts\start.js:19
  throw err;
  ^

[Error: ENOENT: no such file or directory, stat 'C:\Users\username\Documents\My Music'] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'stat',
  path: 'C:\\Users\\username\\Documents\\My Music'
}
PS C:\Users\username\Documents\Projects\chess_server\frontend> 

Why is it pointing to 'C:\Users\username\Documents\My Music'? I have not seen that path anywhere in your files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions