Installing ios-sim 1.9.0 with an error during pre-installation during rake assembly

My ios-sim broke recently after installing system updates, and I'm trying to reinstall it. It is not currently installed in my directory. When sudo npm install -g ios-simI start, I get this error.

$ 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.

I upgraded Node.JS to 1.4.3.

Does anyone know why this is happening and how I can fix it?

+4
source share
3 answers

on my system using node.js (v0.10.8)

$ sudo npm install -g ios-sim

also failed.

but

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

worked fine ..

+5
source

You just need to install the active developer directory:

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

Then you can install ios-simas usual: npm install ios-sim -g.

+2

Xcode, . Xcode? Mavericks:

$ xcode-select --install
+1

Source: https://habr.com/ru/post/1532038/


All Articles