Cordova CLI Windows - 执行 cordova 平台添加时出现 ENOENT 错误 android
Cordova CLI Windows - ENOENT error when executing cordova platform add android
我安装了 openssh,我怀疑它从环境变量中删除了我的路径。从那以后,我得到了以下错误。
这是什么原因造成的?
cordova 信息输出如下:
Node version: v6.12.3
Cordova version: 7.0.0
Config.xml file:
<?xml version='1.0' encoding='utf-8'?>
<widget id="io.cordova.hellocordova" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>HelloCordova</name>
<description>
A sample Apache Cordova application that responds to the deviceready event.
</description>
<author email="dev@cordova.apache.org" href="http://cordova.io">
Apache Cordova Team
</author>
<content src="index.html" />
<plugin name="cordova-plugin-whitelist" spec="1" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
<allow-intent href="market:*" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
</widget>
No Plugins Currently Installed
No Platforms Currently Installed
我在我的环境变量中添加了 JAVA_HOME 和 ANDROID_HOME。但还是一样的错误
是的,这是我的 PATH 变量中的问题。 OpenSSH 安装删除默认值。
我只需要将 %SystemRoot%\system32; %SystemRoot%; %SystemRoot%\System32\Wbem;
添加到我的 PATH
我安装了 openssh,我怀疑它从环境变量中删除了我的路径。从那以后,我得到了以下错误。
这是什么原因造成的?
cordova 信息输出如下:
Node version: v6.12.3
Cordova version: 7.0.0
Config.xml file:
<?xml version='1.0' encoding='utf-8'?>
<widget id="io.cordova.hellocordova" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>HelloCordova</name>
<description>
A sample Apache Cordova application that responds to the deviceready event.
</description>
<author email="dev@cordova.apache.org" href="http://cordova.io">
Apache Cordova Team
</author>
<content src="index.html" />
<plugin name="cordova-plugin-whitelist" spec="1" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
<allow-intent href="market:*" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
</widget>
No Plugins Currently Installed
No Platforms Currently Installed
我在我的环境变量中添加了 JAVA_HOME 和 ANDROID_HOME。但还是一样的错误
是的,这是我的 PATH 变量中的问题。 OpenSSH 安装删除默认值。
我只需要将 %SystemRoot%\system32; %SystemRoot%; %SystemRoot%\System32\Wbem;
添加到我的 PATH