Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/185.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 在安装NodeJS后在mac中安装Phonegap时出现此错误?_Android_Macos_Cordova - Fatal编程技术网

Android 在安装NodeJS后在mac中安装Phonegap时出现此错误?

Android 在安装NodeJS后在mac中安装Phonegap时出现此错误?,android,macos,cordova,Android,Macos,Cordova,在安装了Node JS之后,我试图在mac中安装Phonegap。在“sudo npm install-g Phonegap”之后,我出现了这个错误 npm警告不推荐使用的放气-crc32-stream@0.1.2:模块已合并到crc32流中 ws@0.4.31安装/usr/local/lib/node_modules/phonegap/node_modules/connect phonegap/node_modules/socket.io/node_modules/engine.io/node

在安装了Node JS之后,我试图在mac中安装Phonegap。在“sudo npm install-g Phonegap”之后,我出现了这个错误

npm警告不推荐使用的放气-crc32-stream@0.1.2:模块已合并到crc32流中

ws@0.4.31安装/usr/local/lib/node_modules/phonegap/node_modules/connect phonegap/node_modules/socket.io/node_modules/engine.io/node_modules/ws (节点gyp rebuild 2>builderror.log)| |(退出0)


事实上,这不是一个错误。这是一个警告。我刚才也经历过类似的事情:

  # npm install -g phonegap
npm WARN deprecated deflate-crc32-stream@0.1.2: module has been merged into crc32-stream
npm ERR! fetch failed http://github.com/component/emitter/archive/1.0.1.tar.gz

> ws@0.4.31 install /usr/local/lib/node_modules/phonegap/node_modules/connect-phonegap/node_modules/socket.io/node_modules/engine.io/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)
我不得不手动下载

并安装它:

 # npm install -g 1.0.1.tar.gz 
   emitter@1.0.1 /usr/local/lib/node_modules/emitter
   └── indexof@0.0.1
然后再次运行该命令,仍然收到警告,但它在一段时间后继续并完成了安装:

  # npm install -g phonegapnpm WARN deprecated deflate-crc32-stream@0.1.2: module has been merged into crc32-stream

> ws@0.4.31 install /usr/local/lib/node_modules/phonegap/node_modules/connect-phonegap/node_modules/socket.io/node_modules/engine.io/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

我刚刚开始尝试phonegap。我希望你找到了一条出路。

也没有找到:-(解决方法:

$sudo npm install -g cordova

并改用Cordova。

尝试用以下命令使用terminal

$sudo npm install -g cordova
让cordova在我的Mac上运行。你也可以使用Phonegap桌面客户端。
从他们的网站下载。

尝试安装Node.js的0.10x版本,因为它在Windows 8中解决了此问题。

我收到了相同的错误…您找到解决方案了吗?
$sudo npm install -g cordova