Am getting this error when I try starting a web App in Windows 10.
What could have gone wrong?
Starting development server…
The app ui-library-task-template is now available on port 3000
throw er; // Unhandled ‘error’ event
Error: spawn yarn ENOENT
I think it may be the node version. I suggest you try using v16.x or 14.x versions.
Right! And maybe yarn needs to be installed globally?
npm i -g yarn
Additionally, some other things to try:
delete your yarn file
in your app directory try
d2 app scripts init .
yarn before using
yarn run start (also, sometimes yarn run start works while yarn start doesn’t, I haven’t spent time investigating why, but it does)
Hope these help! (:
Thank you @Gassim and @nnkogift for your contribution. Let me check these solutions out and get back with the result.