I got the error blow when updating atom-react, and the version of my Atom is 1.4.0.
npm WARN addRemoteGit git+https://github.com/millermedeiros/rocambole.git#1bd5044df1d6c888a1bd1b511158fb34b011e9aa resetting remote /Users/superlin/.atom/.apm/_git-remotes/https-github-com-millermedeiros-rocambole-git-fa28ae6f because of error: Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
npm ERR! git clone --template=/Users/superlin/.atom/.apm/_git-remotes/_templates --mirror https://github.com/millermedeiros/rocambole.git /Users/superlin/.atom/.apm/_git-remotes/https-github-com-millermedeiros-rocambole-git-fa28ae6f: Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
npm ERR! Darwin 15.4.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/superlin/.atom/.apm/.apmrc" "--userconfig" "/Users/superlin/.atom/.apmrc" "install" "/private/var/folders/mk/l3ytycgn7vn6l0xw7jwwzc4c0000gn/T/d-116022-872-1l1x8x5/package.tgz" "--target=0.34.5" "--arch=x64"
npm ERR! node v0.10.40
npm ERR! npm v2.13.3
npm ERR! code 69
npm ERR! Command failed:
npm ERR!
npm ERR! Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
npm ERR!
npm ERR!
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /private/var/folders/mk/l3ytycgn7vn6l0xw7jwwzc4c0000gn/T/apm-install-dir-116022-872-2npov6/npm-debug.log
I got the error blow when updating atom-react, and the version of my Atom is 1.4.0.