Вопрос

I'm trying to install the ios-sim module without root access (for PhoneGap).
I keep getting "missing ios-sim" even after installing it without the -g flag in the application folder.
(I don't have root access to the machine)

Any way of making it work without root access ?

Это было полезно?

Решение

It comes down to two options:

  1. installing node.js somewhere your user can write to, or set up your system to install global npm modules in your $HOME
  2. install ios-sim locally somewhere and add that to your $PATH. For instance:
    cd ~ && npm install ios-sim then add ~/node_modules/.bin to your $PATH
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top