$ npm i macaca-ios -g
npm WARN deprecated tough-cookie@2.2.2: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated hoek@2.16.3: The major version is no longer supported. Please update to 4.x or newer
npm WARN deprecated node-uuid@1.4.7: Use uuid module instead
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/ansi-regex
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/address
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/asynckit
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/balanced-match
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/aws4
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/base64-js
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/big-integer
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/bluebird
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/bplist-parser
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/caseless
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/co
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/color-name
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/color-convert
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/ansi-styles
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/commander
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/concat-map
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/brace-expansion
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/dashdash
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/core-util-is
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/delayed-stream
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/combined-stream
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/escape-string-regexp
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/extend
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/extsprintf
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/fast-deep-equal
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/fast-json-stable-stringify
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/forever-agent
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/fs.realpath
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/generate-function
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/getpass
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/har-schema
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/has-ansi
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/has-flag
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/hoek
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/boom
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/cryptiles
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/interpret
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/inherits
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/ios-deploy
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/is-my-ip-valid
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/is-plain-obj
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/is-property
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/generate-object-property
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/is-typedarray
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/is-wsl
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/isarray
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/isstream
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/jsbn
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/json-schema
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/json-schema-traverse
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/ajv
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/har-validator
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/json-stringify-safe
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/jsonpointer
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/async
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/mime-types
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/mime-db
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/form-data
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/minimatch
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/minimist
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/mkdirp
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/moment
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/ms
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/debug
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/detect-port
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/oauth-sign
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/opn
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/object-assign
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/options
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/path-is-absolute
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/path-parse
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/pegjs
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/performance-now
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/pinkie
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/pinkie-promise
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/prepend-http
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/process-nextick-args
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/psl
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/punycode
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/resolve
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/rechoir
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/safe-buffer
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/safer-buffer
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/asn1
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/ecc-jsbn
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/iconv-lite
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/selenium-atoms
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/semver
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/simple-cookie
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/cookie-manager
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/sntp
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/hawk
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/sort-keys
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/stream-buffers
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/bplist-creator
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/strict-uri-encode
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/query-string
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/normalize-url
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/string_decoder
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/stringstream
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/strip-ansi
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/supports-color
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/chalk
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/sync-exec
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/copy-paste
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/ipv4
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/tunnel-agent
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/tweetnacl
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/bcrypt-pbkdf
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/sshpk
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/ultron
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/util-deprecate
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/readable-stream
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/bl
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/uuid
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/verror
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/jsprim
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/http-signature
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/request
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/co-request
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/request-promise
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/webdriver-dfn-error-code
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/wrappy
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/once
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/inflight
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/glob
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/rimraf
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/shelljs
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/ws
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/xctestwd-frameworks-9.2
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/xctestwd-frameworks-93
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/xctestwd-frameworks-94
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/xmlbuilder
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/xmldom
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/plist
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/simple-plist
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/xcode
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/xtend
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/is-my-json-valid
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/xutil
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/java-home
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/java-util
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/macaca-utils
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/devicelog
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/ios-utils
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/net-tools
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/macaca-doctor
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/node-ios-webkit-debug-proxy
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/xlogger
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/_chalk@1.1.3@chalk/node_modules/escape-string-regexp
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/driver-base
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/_form-data@1.0.1@form-data/node_modules/combined-stream
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/_http-signature@1.1.1@http-signature/node_modules/assert-plus
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/_http-signature@1.1.1@http-signature/node_modules/sshpk
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/ios-device
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/ios-simulator
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/remote-debugger
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/_request@2.69.0@request/node_modules/aws-sign2
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/_request@2.69.0@request/node_modules/aws4
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/_request@2.69.0@request/node_modules/combined-stream
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/_request@2.69.0@request/node_modules/forever-agent
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/_request@2.69.0@request/node_modules/json-stringify-safe
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/_request@2.69.0@request/node_modules/qs
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/_request@2.69.0@request/node_modules/tough-cookie
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/macaca-ios/node_modules/xctestwd
npm ERR! path /usr/local/lib/node_modules/macaca-ios/node_modules/ansi-regex
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access '/usr/local/lib/node_modules/macaca-ios/node_modules/ansi-regex'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/imetric/.npm/_logs/2018-08-29T06_30_32_364Z-debug.log
通过 pkg 安装和源码安装都已经试过,都报这个错。
也对/usr/local/lib/node_modules 加了权限