当前位置:  开发笔记 > 编程语言 > 正文

在rake构建期间,在预安装时安装ios-sim 1.9.0失败

如何解决《在rake构建期间,在预安装时安装ios-sim1.9.0失败》经验,为你挑选了1个好方法。

安装系统更新后,我的ios-sim最近破了,我正在尝试重新安装它.目前,它没有安装在我的目录中.运行时sudo npm install -g ios-sim,我收到此错误.

$ sudo npm install -g ios-sim
npm http GET https://registry.npmjs.org/ios-sim
npm http 304 https://registry.npmjs.org/ios-sim
> ios-sim@1.9.0 preinstall /usr/local/lib/node_modules/ios-sim
> rake build


events.js:72
    throw er; // Unhandled 'error' event
          ^
Error: Cannot find module './ios-sim' from '/usr/local/lib/node_modules/ios-sim'
at /usr/local/lib/node_modules/rake/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:36:25
at load (/usr/local/lib/node_modules/rake/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:54:43)
at /usr/local/lib/node_modules/rake/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:60:22
at /usr/local/lib/node_modules/rake/node_modules/browserify/node_modules/browser-resolve/node_modules/resolve/lib/async.js:16:47
at Object.oncomplete (fs.js:107:15)
npm ERR! ios-sim@1.9.0 preinstall: `rake build`
npm ERR! Exit status 8
npm ERR! 
npm ERR! Failed at the ios-sim@1.9.0 preinstall script.
npm ERR! This is most likely a problem with the ios-sim package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     rake build
npm ERR! You can get their info via:
npm ERR!     npm owner ls ios-sim
npm ERR! There is likely additional logging output above.

我已将Node.JS更新为1.4.3.

有谁知道为什么会这样,以及我如何解决它?



1> Wisu Suntoyo..:

在我的系统安装使用node.js(v0.10.8)

$ sudo npm install -g ios-sim

也失败了..

然而

$ git clone git://github.com/phonegap/ios-sim.git
$ cd ios-sim
$ sudo rake install prefix=/usr/local

工作得很好..

推荐阅读
sx-March23
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有