×;未安装组件tns核心模块×;未安装组件tns android×;未安装组件tns ios
我遗漏了什么,我已经完成了nativescript安装指南中要求的所有步骤运行tns doctor会给我以下输出×;未安装组件tns核心模块×;未安装组件tns android×;未安装组件tns ios,android,nativescript,tns,Android,Nativescript,Tns,我遗漏了什么,我已经完成了nativescript安装指南中要求的所有步骤运行tns doctor会给我以下输出 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 install
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.
您是否尝试检查您的
包.json
?或者尝试执行npm i
?或者tns安装
?我认为有两点:
NativeScript快速安装程序安装它,因为它可以一起安装
包.json中是否存在此模块:
未安装×组件tns核心模块。
未安装×组件tns android。
未安装×组件tns ios。
您还可以检查是否执行此操作:npm ls
,其中
是检查它的模块
让我知道它是否对你有帮助。试试这个-
tns平台添加android
是的,创建一个项目负责tns核心模块,但是tns android和tns ios即使在json文件包中仍然是交叉的。你试过tns平台安装android/ios
?并检查应用程序根目录中是否存在platform
文件夹?