Visual Studio Code command "yarn studio" does not work – "The system cannot find the file specified" error

Issue

I’m working on hybrid project of Angular with Android, my environment is Visual Studio Code. I’m trying to open this project in Android Studio with command "yarn studio", but it does not work. Does anyone have any suggestions? (P.S. commands "yarn" and "yarn build" work properly)

Error body in node terminal:

yarn run v1.22.19
$ export $(xargs <.env) && npx cap sync android && npx cap open android
The system cannot find the file specified.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Solution

According to this documentation, use:

npx cap copy android
npx cap open android

Answered By – jonsmit0728

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published