gpt4 book ai didi

ios - 在 rake build 期间安装 ios-sim 1.9.0 在预安装时失败

转载 作者:可可西里 更新时间:2023-11-01 05:12:41 26 4
gpt4 key购买 nike

我的 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。

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

最佳答案

在我的系统上使用 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

工作正常..

关于ios - 在 rake build 期间安装 ios-sim 1.9.0 在预安装时失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22441291/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com