Cordova:找不到目录 [英] Cordova: could not find directory

查看:1615
本文介绍了Cordova:找不到目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用Cordova为这个学期开发一个项目的移动应用程序,并且在开始和运行时遇到困难。我按照Apache提供的教程。当我运行 cordova create hello com.example.hello HelloWorld 创建Hello World应用程序时,我得到以下输出:

I need to use Cordova to develop a mobile application for a project this semester and am having difficulties getting it up and running. I followed this tutorial provided by Apache. When I run cordova create hello com.example.hello HelloWorld to create the Hello World application I get the following output:

创建新的cordova项目。

无法找到目录:/ usr / local / lib / node_modules / cordova / node_modules / cordova-lib / node_modules / cordova- hello-world

Creating a new cordova project.
Could not find directory: /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/cordova-app-hello-world

我想知道发生了什么,因为在命令似乎已经成功之前,一切都会发生。现在我安装了以下版本:

I am trying to figure out what is going on, because everything up until the command seems to have been successful. Right now I have the following installed:


  • Node.js 5.0.0

  • < 2
  • Cordova 5.3.3

  • Ant 1.9.6(我被告知这是使用IDE的,所以我安装它) / li>
  • Android SDK工具

  • Xcode

  • Node.js 5.0.0
  • git 2.6.2
  • Cordova 5.3.3
  • Ant 1.9.6 (I was told this is needed to work with an IDE, so I installed it)
  • Android SDK Tools
  • Xcode

推荐答案

现在节点5和cordova有一些问题,他们已经修复,但还没有发布。现在,使用节点4

Right now there are a few problems with node 5 and cordova, they have been fixed but not released yet. For now, use node 4

编辑:
Cordova 5.4.0已经可以正常使用节点5
http://cordova.apache.org/news/2015/11/06/tools-release .html

这篇关于Cordova:找不到目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆