Skip to content

Instantly share code, notes, and snippets.

@sw331
Last active July 3, 2016 01:33
Show Gist options
  • Select an option

  • Save sw331/d45905f94f1d07bacc6dabade79f2955 to your computer and use it in GitHub Desktop.

Select an option

Save sw331/d45905f94f1d07bacc6dabade79f2955 to your computer and use it in GitHub Desktop.
npm update error
WangSongdeMacBook-Air:~ wangsong$ npm install -g npm-check-updates
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
/usr/local/lib
├── abbrev@1.0.9
├── aproba@1.0.4
├─┬ fstream@1.0.10
│ ├── graceful-fs@4.1.4
│ ├── inherits@2.0.1
│ ├─┬ mkdirp@0.5.1
│ │ └── minimist@0.0.8
│ └── rimraf@2.5.2
├─┬ glob@7.0.4
│ ├── fs.realpath@1.0.0
│ ├── inflight@1.0.5
│ ├─┬ minimatch@3.0.0
│ │ └─┬ brace-expansion@1.1.5
│ │ ├── balanced-match@0.4.1
│ │ └── concat-map@0.0.1
│ ├── once@1.3.3
│ └── path-is-absolute@1.0.0
├── has-unicode@2.0.1
├─┬ npm-check-updates@2.6.8
│ ├── bluebird@3.4.1
│ ├─┬ chalk@1.1.3
│ │ ├── ansi-styles@2.2.1
│ │ ├── escape-string-regexp@1.0.5
│ │ ├─┬ has-ansi@2.0.0
│ │ │ └── ansi-regex@2.0.0
│ │ ├── strip-ansi@3.0.1
│ │ └── supports-color@2.0.0
│ ├── cint@8.2.1
│ ├─┬ cli-table@0.3.1
│ │ └── colors@1.0.3
│ ├─┬ commander@2.9.0
│ │ └── graceful-readlink@1.0.1
│ ├── fast-diff@1.0.1
│ ├─┬ find-up@1.1.2
│ │ ├── path-exists@2.1.0
│ │ └─┬ pinkie-promise@2.0.1
│ │ └── pinkie@2.0.4
│ ├── get-stdin@5.0.1
│ ├─┬ json-parse-helpfulerror@1.0.3
│ │ └── jju@1.3.0
│ ├── lodash@3.10.1
│ ├─┬ node-alias@1.0.4
│ │ └── lodash@4.13.1
│ ├─┬ npm@3.10.3
│ │ ├── ansi-regex@2.0.0
│ │ ├── ansicolors@0.3.2
│ │ ├── ansistyles@0.1.3
│ │ ├── archy@1.0.0
│ │ ├── asap@2.0.4
│ │ ├── chownr@1.0.1
│ │ ├── cmd-shim@2.0.2
│ │ ├─┬ columnify@1.5.4
│ │ │ └─┬ wcwidth@1.0.0
│ │ │ └─┬ defaults@1.0.3
│ │ │ └── clone@1.0.2
│ │ ├─┬ config-chain@1.1.10
│ │ │ └── proto-list@1.2.4
│ │ ├── editor@1.0.0
│ │ ├── fs-vacuum@1.2.9
│ │ ├── fs-write-stream-atomic@1.0.8
│ │ ├─┬ fstream-npm@1.1.0
│ │ │ └─┬ fstream-ignore@1.0.5
│ │ │ └─┬ minimatch@3.0.0
│ │ │ └─┬ brace-expansion@1.1.4
│ │ │ ├── balanced-match@0.4.1
│ │ │ └── concat-map@0.0.1
│ │ ├── iferr@0.1.5
│ │ ├── imurmurhash@0.1.4
│ │ ├── ini@1.3.4
│ │ ├─┬ init-package-json@1.9.4
│ │ │ ├─┬ glob@6.0.4
│ │ │ │ ├─┬ minimatch@3.0.0
│ │ │ │ │ └─┬ brace-expansion@1.1.4
│ │ │ │ │ ├── balanced-match@0.4.1
│ │ │ │ │ └── concat-map@0.0.1
│ │ │ │ └── path-is-absolute@1.0.0
│ │ │ └── promzard@0.3.0
│ │ ├── lockfile@1.0.1
│ │ ├── lodash._baseindexof@3.1.0
│ │ ├─┬ lodash._baseuniq@4.6.0
│ │ │ ├── lodash._createset@4.0.3
│ │ │ └── lodash._root@3.0.1
│ │ ├── lodash._bindcallback@3.0.1
│ │ ├── lodash._cacheindexof@3.0.2
│ │ ├── lodash._createcache@3.1.2
│ │ ├── lodash._getnative@3.9.1
│ │ ├─┬ lodash.clonedeep@4.3.2
│ │ │ └── lodash._baseclone@4.5.3
│ │ ├── lodash.restparam@3.6.1
│ │ ├─┬ lodash.union@4.4.0
│ │ │ ├── lodash._baseflatten@4.2.1
│ │ │ └── lodash.rest@4.0.3
│ │ ├── lodash.uniq@4.3.0
│ │ ├─┬ lodash.without@4.2.0
│ │ │ ├─┬ lodash._basedifference@4.5.0
│ │ │ │ └── lodash._root@3.0.1
│ │ │ └── lodash.rest@4.0.3
│ │ ├─┬ node-gyp@3.3.1
│ │ │ ├─┬ glob@4.5.3
│ │ │ │ └─┬ minimatch@2.0.10
│ │ │ │ └─┬ brace-expansion@1.1.3
│ │ │ │ ├── balanced-match@0.3.0
│ │ │ │ └── concat-map@0.0.1
│ │ │ ├─┬ minimatch@1.0.0
│ │ │ │ ├── lru-cache@2.7.3
│ │ │ │ └── sigmund@1.0.1
│ │ │ ├─┬ npmlog@2.0.4
│ │ │ │ ├── ansi@0.3.1
│ │ │ │ ├─┬ are-we-there-yet@1.1.2
│ │ │ │ │ └── delegates@1.0.0
│ │ │ │ └─┬ gauge@1.2.7
│ │ │ │ ├─┬ lodash.pad@4.4.0
│ │ │ │ │ ├── lodash._baseslice@4.0.0
│ │ │ │ │ ├── lodash._basetostring@4.12.0
│ │ │ │ │ └── lodash.tostring@4.1.3
│ │ │ │ ├─┬ lodash.padend@4.5.0
│ │ │ │ │ ├── lodash._baseslice@4.0.0
│ │ │ │ │ ├── lodash._basetostring@4.12.0
│ │ │ │ │ └── lodash.tostring@4.1.3
│ │ │ │ └─┬ lodash.padstart@4.5.0
│ │ │ │ ├── lodash._baseslice@4.0.0
│ │ │ │ ├── lodash._basetostring@4.12.0
│ │ │ │ └── lodash.tostring@4.1.3
│ │ │ └─┬ path-array@1.0.1
│ │ │ └─┬ array-index@1.0.0
│ │ │ ├─┬ debug@2.2.0
│ │ │ │ └── ms@0.7.1
│ │ │ └─┬ es6-symbol@3.0.2
│ │ │ ├── d@0.1.1
│ │ │ └─┬ es5-ext@0.10.11
│ │ │ └── es6-iterator@2.0.0
│ │ ├── nopt@3.0.6
│ │ ├── normalize-git-url@3.0.2
│ │ ├─┬ normalize-package-data@2.3.5
│ │ │ └─┬ is-builtin-module@1.0.0
│ │ │ └── builtin-modules@1.1.1
│ │ ├── npm-cache-filename@1.0.2
│ │ ├── npm-install-checks@3.0.0
│ │ ├─┬ npm-registry-client@7.1.2
│ │ │ ├─┬ concat-stream@1.5.1
│ │ │ │ ├─┬ readable-stream@2.0.6
│ │ │ │ │ ├── core-util-is@1.0.2
│ │ │ │ │ ├── isarray@1.0.0
│ │ │ │ │ ├── process-nextick-args@1.0.7
│ │ │ │ │ ├── string_decoder@0.10.31
│ │ │ │ │ └── util-deprecate@1.0.2
│ │ │ │ └── typedarray@0.0.6
│ │ │ └── retry@0.8.0
│ │ ├─┬ npmlog@3.1.2
│ │ │ ├─┬ are-we-there-yet@1.1.2
│ │ │ │ └── delegates@1.0.0
│ │ │ ├── console-control-strings@1.1.0
│ │ │ ├─┬ gauge@2.6.0
│ │ │ │ ├── has-color@0.1.7
│ │ │ │ ├── object-assign@4.1.0
│ │ │ │ ├── signal-exit@3.0.0
│ │ │ │ ├─┬ string-width@1.0.1
│ │ │ │ │ ├─┬ code-point-at@1.0.0
│ │ │ │ │ │ └── number-is-nan@1.0.0
│ │ │ │ │ └─┬ is-fullwidth-code-point@1.0.0
│ │ │ │ │ └── number-is-nan@1.0.0
│ │ │ │ └── wide-align@1.1.0
│ │ │ └── set-blocking@2.0.0
│ │ ├── opener@1.4.1
│ │ ├─┬ osenv@0.1.3
│ │ │ ├── os-homedir@1.0.1
│ │ │ └── os-tmpdir@1.0.1
│ │ ├── path-is-inside@1.0.1
│ │ ├─┬ read@1.0.7
│ │ │ └── mute-stream@0.0.5
│ │ ├── read-cmd-shim@1.0.1
│ │ ├─┬ read-installed@4.0.3
│ │ │ └── util-extend@1.0.3
│ │ ├── realize-package-specifier@3.0.3
│ │ ├─┬ request@2.72.0
│ │ │ ├── aws-sign2@0.6.0
│ │ │ ├─┬ aws4@1.3.2
│ │ │ │ └─┬ lru-cache@4.0.1
│ │ │ │ ├── pseudomap@1.0.2
│ │ │ │ └── yallist@2.0.0
│ │ │ ├─┬ bl@1.1.2
│ │ │ │ └─┬ readable-stream@2.0.6
│ │ │ │ ├── core-util-is@1.0.2
│ │ │ │ ├── isarray@1.0.0
│ │ │ │ ├── process-nextick-args@1.0.6
│ │ │ │ ├── string_decoder@0.10.31
│ │ │ │ └── util-deprecate@1.0.2
│ │ │ ├── caseless@0.11.0
│ │ │ ├─┬ combined-stream@1.0.5
│ │ │ │ └── delayed-stream@1.0.0
│ │ │ ├── extend@3.0.0
│ │ │ ├── forever-agent@0.6.1
│ │ │ ├─┬ form-data@1.0.0-rc4
│ │ │ │ └── async@1.5.2
│ │ │ ├─┬ har-validator@2.0.6
│ │ │ │ ├─┬ chalk@1.1.3
│ │ │ │ │ ├── ansi-styles@2.2.1
│ │ │ │ │ ├── escape-string-regexp@1.0.5
│ │ │ │ │ ├── has-ansi@2.0.0
│ │ │ │ │ └── supports-color@2.0.0
│ │ │ │ ├─┬ commander@2.9.0
│ │ │ │ │ └── graceful-readlink@1.0.1
│ │ │ │ ├─┬ is-my-json-valid@2.13.1
│ │ │ │ │ ├── generate-function@2.0.0
│ │ │ │ │ ├─┬ generate-object-property@1.2.0
│ │ │ │ │ │ └── is-property@1.0.2
│ │ │ │ │ ├── jsonpointer@2.0.0
│ │ │ │ │ └── xtend@4.0.1
│ │ │ │ └─┬ pinkie-promise@2.0.1
│ │ │ │ └── pinkie@2.0.4
│ │ │ ├─┬ hawk@3.1.3
│ │ │ │ ├── boom@2.10.1
│ │ │ │ ├── cryptiles@2.0.5
│ │ │ │ ├── hoek@2.16.3
│ │ │ │ └── sntp@1.0.9
│ │ │ ├─┬ http-signature@1.1.1
│ │ │ │ ├── assert-plus@0.2.0
│ │ │ │ ├─┬ jsprim@1.2.2
│ │ │ │ │ ├── extsprintf@1.0.2
│ │ │ │ │ ├── json-schema@0.2.2
│ │ │ │ │ └── verror@1.3.6
│ │ │ │ └─┬ sshpk@1.7.4
│ │ │ │ ├── asn1@0.2.3
│ │ │ │ ├─┬ dashdash@1.13.0
│ │ │ │ │ └── assert-plus@1.0.0
│ │ │ │ ├── ecc-jsbn@0.1.1
│ │ │ │ ├── jodid25519@1.0.2
│ │ │ │ ├── jsbn@0.1.0
│ │ │ │ └── tweetnacl@0.14.3
│ │ │ ├── is-typedarray@1.0.0
│ │ │ ├── isstream@0.1.2
│ │ │ ├── json-stringify-safe@5.0.1
│ │ │ ├─┬ mime-types@2.1.10
│ │ │ │ └── mime-db@1.22.0
│ │ │ ├── node-uuid@1.4.7
│ │ │ ├── oauth-sign@0.8.1
│ │ │ ├── qs@6.1.0
│ │ │ ├── stringstream@0.0.5
│ │ │ ├── tough-cookie@2.2.2
│ │ │ └── tunnel-agent@0.4.2
│ │ ├── retry@0.9.0
│ │ ├── sha@2.0.1
│ │ ├── slide@1.1.6
│ │ ├── sorted-object@2.0.0
│ │ ├── strip-ansi@3.0.1
│ │ ├─┬ tar@2.2.1
│ │ │ └── block-stream@0.0.8
│ │ ├── text-table@0.2.0
│ │ ├── uid-number@0.0.6
│ │ ├── umask@1.1.0
│ │ ├─┬ unique-filename@1.1.0
│ │ │ └── unique-slug@2.0.0
│ │ ├── unpipe@1.0.0
│ │ ├─┬ validate-npm-package-license@3.0.1
│ │ │ ├─┬ spdx-correct@1.0.2
│ │ │ │ └── spdx-license-ids@1.2.0
│ │ │ └─┬ spdx-expression-parse@1.0.2
│ │ │ ├── spdx-exceptions@1.0.4
│ │ │ └── spdx-license-ids@1.2.0
│ │ ├─┬ validate-npm-package-name@2.2.2
│ │ │ └── builtins@0.0.7
│ │ └── write-file-atomic@1.1.4
│ ├─┬ npmi@2.0.1
│ │ └── semver@4.3.6
│ ├── require-dir@0.3.0
│ ├── semver@5.2.0
│ ├── semver-utils@1.1.1
│ ├── spawn-please@0.1.0
│ └─┬ update-notifier@0.5.0
│ ├─┬ configstore@1.4.0
│ │ ├── graceful-fs@4.1.4
│ │ ├─┬ mkdirp@0.5.1
│ │ │ └── minimist@0.0.8
│ │ ├── object-assign@4.1.0
│ │ ├── os-tmpdir@1.0.1
│ │ ├─┬ osenv@0.1.3
│ │ │ └── os-homedir@1.0.1
│ │ ├── uuid@2.0.2
│ │ ├─┬ write-file-atomic@1.1.4
│ │ │ ├── imurmurhash@0.1.4
│ │ │ └── slide@1.1.6
│ │ └── xdg-basedir@2.0.0
│ ├── is-npm@1.0.0
│ ├─┬ latest-version@1.0.1
│ │ └─┬ package-json@1.2.0
│ │ ├─┬ got@3.3.1
│ │ │ ├─┬ duplexify@3.4.3
│ │ │ │ ├─┬ end-of-stream@1.0.0
│ │ │ │ │ └─┬ once@1.3.3
│ │ │ │ │ └── wrappy@1.0.2
│ │ │ │ ├── inherits@2.0.1
│ │ │ │ └─┬ readable-stream@2.1.4
│ │ │ │ ├── buffer-shims@1.0.0
│ │ │ │ ├── core-util-is@1.0.2
│ │ │ │ ├── isarray@1.0.0
│ │ │ │ ├── process-nextick-args@1.0.7
│ │ │ │ ├── string_decoder@0.10.31
│ │ │ │ └── util-deprecate@1.0.2
│ │ │ ├── infinity-agent@2.0.3
│ │ │ ├── is-redirect@1.0.0
│ │ │ ├── is-stream@1.1.0
│ │ │ ├── lowercase-keys@1.0.0
│ │ │ ├── nested-error-stacks@1.0.2
│ │ │ ├── object-assign@3.0.0
│ │ │ ├── prepend-http@1.0.4
│ │ │ ├── read-all-stream@3.1.0
│ │ │ └── timed-out@2.0.0
│ │ └─┬ registry-url@3.1.0
│ │ └─┬ rc@1.1.6
│ │ ├── deep-extend@0.4.1
│ │ ├── ini@1.3.4
│ │ ├── minimist@1.2.0
│ │ └── strip-json-comments@1.0.4
│ ├─┬ repeating@1.1.3
│ │ └─┬ is-finite@1.0.1
│ │ └── number-is-nan@1.0.0
│ ├── semver-diff@2.1.0
│ └── string-length@1.0.1
├─┬ npm-package-arg@4.2.0
│ ├── hosted-git-info@2.1.5
│ └── semver@5.1.0
├── npm-user-validate@0.1.4
├─┬ read-package-tree@5.1.5
│ ├── debuglog@1.0.1
│ ├── dezalgo@1.0.3
│ ├─┬ read-package-json@2.0.4
│ │ ├─┬ glob@6.0.4
│ │ │ ├─┬ minimatch@3.0.0
│ │ │ │ └─┬ brace-expansion@1.1.3
│ │ │ │ ├── balanced-match@0.3.0
│ │ │ │ └── concat-map@0.0.1
│ │ │ └── path-is-absolute@1.0.0
│ │ └─┬ json-parse-helpfulerror@1.0.3
│ │ └── jju@1.3.0
│ └── readdir-scoped-modules@1.0.2
├─┬ readable-stream@2.1.4
│ ├── buffer-shims@1.0.0
│ ├── core-util-is@1.0.2
│ ├── isarray@1.0.0
│ ├── process-nextick-args@1.0.7
│ ├── string_decoder@0.10.31
│ └── util-deprecate@1.0.2
├─┬ which@1.2.10
│ └── isexe@1.1.2
└── wrappy@1.0.2
npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "npm-check-updates"
npm ERR! node v6.2.2
npm ERR! npm v3.9.5
npm ERR! path /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR! at Error (native)
npm ERR! { Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR! at Error (native)
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib/node_modules' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
WangSongdeMacBook-Air:~ wangsong$ npm -v
3.9.5
WangSongdeMacBook-Air:~ wangsong$ node -v
v6.2.2
WangSongdeMacBook-Air:~ wangsong$ npm config get registry
https://registry.npmjs.org/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment