Ios-deploy is missing!

Please can someone guide me how to fix this. I am stuck since I can’t start my project.

Checking NodeJS installation and version...
v12.18.2
NodeJS is correctly installed.

Checking Cordova installation and version...
9.0.0 (cordova-lib@9.0.1)
Cordova is correctly installed.

Checking Xcode installation and version...
com.apple.dt.Xcode
Xcode is correctly installed.

Checking ios-sim installation and version...
ios-sim/9.0.0 darwin-x64 node-v12.18.2
ios-sim is correctly installed.

Checking ios-deploy installation and version...
/bin/bash: ios-deploy: command not found
ios-deploy is missing!


Installing ios-deploy ...
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /usr/local/lib/node_modules
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR!  [Error: EACCES: permission denied, access '/usr/local/lib/node_modules'] {
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/local/lib/node_modules'
npm ERR! }
npm ERR! 
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR! 
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/X/.npm/_logs/2020-08-04T21_14_10_862Z-debug.log
ios-deploy installation failed!

I run this command from here https://stackoverflow.com/questions/51967335/npm-install-permission-denied-macos

sudo chown -R $USER /usr/local/lib/node_modules

Showing some different errors now https://hastebin.com/uqeterunut.bash

npm ERR! It is likely you do not have the permissions to access this file as the current user
I only have one user account on my mac.

From my understanding I need to change root to my user as X, is that correct?
image

I tried the commands from this page & It’s not helping.

sudo chown -R $USER /usr/local/lib

I used this command to ^ change root to X but still getting the exact same message about permissions from wappler terminal.
image

I used this command & it worked, I’m not sure of the implications of using unsafe.

sudo npm install -g --unsafe-perm ios-deploy

1 Like