3

I am using Linux on windows (WSL). When I try to scaffold a project with create-react-app I get this message:

error An unexpected error occurred: "ENOENT: no such file or directory, lstat '/home/sashacode/.cache/yarn/v4/npm-table-5.2.3-cde0cc6eb06751c009efab27e8c820ca5b67b7f2/node_modules/table/README.md'".
info If you think this is a bug, please open a bug report with the information provided in "/mnt/c/Users/PC2/Apps/react_projects/new_world/yarn-error.log".

info Visit link add for documentation about this command.

Aborting installation.
yarnpkg add --exact react react-dom react-scripts --cwd /mnt/c/Users/PC2/Apps/react_projects/new_world has failed.

Deleting generated file... node_modules Deleting generated file... package.json Deleting generated file... yarn.lock Done.

Don't know what's going on. Any help?

tk421
  • 5,775
  • 6
  • 23
  • 34
Sandro Palmieri
  • 1,193
  • 2
  • 12
  • 26

1 Answers1

0

Update node js to a newer version then run create-react-app again this should solve your problem