В React Native Android Studio я получаю сообщение об ошибке:
невозможно запустить узел программы в каталоге «C:\Users\username\myapp\android»
Хотя я могу запустить приложение для Android с помощью студии Android AVD, но ошибка все еще существует.
< p>Я заметил, что когда я открываю проект из корня приложения React Native, ошибки нет, поскольку присутствует узел.
Код: Выделить всё
myapp
\android
\ios
\... rest of react native code App.js etc.
Код: Выделить всё
\android
Is there a way to fix this?
The error message in the Android Studio console indicates an IOException stating
Код: Выделить всё
> Caused by: java.io.IOException: Cannot run program "node" (in directory "C:\Users\leehe\Desktop\workspace\FDEF\android"): CreateProcess error=2, The system cannot find the file specified
Источник: https://stackoverflow.com/questions/781 ... -directory