This works in Terminal
sudo npm install ios-sim -g
so why does this not work in AppleScript:
do shell script "cd /usr/local/lib/node_modules/npm;" & "install ios-sim - g" with administrator privileges
This works in Terminal
sudo npm install ios-sim -g
so why does this not work in AppleScript:
do shell script "cd /usr/local/lib/node_modules/npm;" & "install ios-sim - g" with administrator privileges
Could be a formatting issue, add a space after the semi-colon and remove the space on the -g arg.
eg,
do shell script "cd /usr/local/lib/node_modules/npm; " & "install ios-sim -g" with administrator privileges
Failing this, let us know what the result and/or error is in Applescript Editor.