-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.