我遗漏了什么,我已经完成了本地脚本运行tns医生的安装指南中所要求的所有步骤,给出了以下输出。
C:\abc\xyz>tns doctor
√ Getting environment information
√ Your ANDROID_HOME environment variable is set and points to correct directory.
√ Your adb from the Android SDK is correctly installed.
√ The Android SDK is installed.
√ A compatible Android SDK for compilation is found.
√ Javac is installed and is configured properly.
√ The Java Development Kit (JDK) is installed and is configured properly.
√ Local builds for iOS can be executed only on a macOS system. To build for iOS on a different operating system, you can use the NativeScript cloud infrastructure.
No issues were detected.
√ Getting NativeScript components versions information...
√ Component nativescript has 4.0.2 version and is up to date.
× Component tns-core-modules is not installed.
× Component tns-android is not installed.
× Component tns-ios is not installed.发布于 2018-11-30 02:21:56
试试这个- tns platform add android
发布于 2018-05-25 04:41:16
你试过检查你的package.json了吗?还是尝试执行npm i?或tns install
发布于 2018-05-25 06:39:07
我想有两点:
NativeScript quick setup安装它,因为它可以全部安装在一起。https://docs.nativescript.org/start/quick-setuppackage.json中检查:× Component tns-core-modules is not installed. × Component tns-android is not installed. × Component tns-ios is not installed.
您还可以检查以下操作:npm ls <module-name>,其中<module-name>是检查它的模块。
如果对你有帮助的话请告诉我。
https://stackoverflow.com/questions/50520734
复制相似问题