Error Yarn / ENOENT: no such file or directory

Asked

Viewed 203 times

-1

In the windows environment, when using Yarn to install dependency on a React project, error arises: ENOENT: no such file or directory, open...

To resolve, delete node_modules and Yarn.lock, then run "Yarn install" and finally install the dependency. This solves, but when installing another dependency, the same error occurs and I need to redo the whole process.

What would be the motive? Thank you.

1 answer

0

Hello, I in your case would reinstall nodejs, if I kept error I would try using npm.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.