![](/img/trans.png)
[英]Error: ENOENT: no such file or directory when running Ionic Cordova Platform Add Android
[英]Cordova CLI Windows - ENOENT error when executing cordova platform add android
我安装了openssh,并且怀疑从环境变量中删除了我的Path。 从那时起,我得到了以下错误。
cordova info输出以下内容:
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;
%SystemRoot%\\system32; %SystemRoot%; %SystemRoot%\\System32\\Wbem;
到我的路径
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.