'TypeError: The path must be a string. Received undefined "after starting npm run start.android in angular environment

Thus, using npm run start.android when using https://github.com/NathanWalker/angular-seed-advanced starts the project in android. I installed all the dependencies using npm install and prepared the project correctly.

Unfortunately, after using the command, I get a TypeError: Path must be a string. Received undefined error message TypeError: Path must be a string. Received undefined TypeError: Path must be a string. Received undefined .

I tried to search for solutions on the Internet , but I could not make any of them, because I do not understand why this is happening.

Running tns doctor --log tail showed that there was a problem installing mobile environments (android and ios), so he automatically asked me to fix it by installing several dependencies and packages.

Among these changes, $ANDROID_HOME also added to the bash profile, but it is strange, although I have installed android sdk from sdk from 18 to 25, it seems that tns doctor --log tail seems to give me a message saying "you need to have at least would have an android sdk 22 ".

What should I do to fix this? Do you need more information?

I’m already losing too much time and I really don’t know what to do.

Many thanks for your help.

+5
source share
1 answer

Try: npm install -g nativescript tns doctor Follow the steps and answer yes to each question.

If you are on windows, then iOS will not work. Alternatively, if tns doctor does not work, you can install the emulator for android by setting up android studio: https://developer.android.com/studio/index.html

0
source

Source: https://habr.com/ru/post/1270076/


All Articles