Installing ios-sim for Cordova
$ sudo npm install -g ios-sim always gave me the following message: shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied. Solution was to add --unsafe-perm $ sudo npm install -g --unsafe-perm ios-sim