0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/nodejs', 1 verbose cli '/usr/bin/npm', 1 verbose cli 'install', 1 verbose cli '--global', 1 verbose cli 'avn-nvm' ] 2 info using npm@2.15.5 3 info using node@v4.4.5 4 verbose install initial load of /usr/lib/package.json 5 verbose readDependencies loading dependencies from /usr/lib/package.json 6 silly cache add args [ 'avn-nvm', null ] 7 verbose cache add spec avn-nvm 8 silly cache add parsed spec Result { 8 silly cache add raw: 'avn-nvm', 8 silly cache add scope: null, 8 silly cache add name: 'avn-nvm', 8 silly cache add rawSpec: '', 8 silly cache add spec: 'latest', 8 silly cache add type: 'tag' } 9 silly addNamed avn-nvm@latest 10 verbose addNamed "latest" is being treated as a dist-tag for avn-nvm 11 info addNameTag [ 'avn-nvm', 'latest' ] 12 silly mapToRegistry name avn-nvm 13 silly mapToRegistry using default registry 14 silly mapToRegistry registry https://registry.npmjs.org/ 15 silly mapToRegistry data Result { 15 silly mapToRegistry raw: 'avn-nvm', 15 silly mapToRegistry scope: null, 15 silly mapToRegistry name: 'avn-nvm', 15 silly mapToRegistry rawSpec: '', 15 silly mapToRegistry spec: 'latest', 15 silly mapToRegistry type: 'tag' } 16 silly mapToRegistry uri https://registry.npmjs.org/avn-nvm 17 verbose addNameTag registry:https://registry.npmjs.org/avn-nvm not in flight; fetching 18 verbose request uri https://registry.npmjs.org/avn-nvm 19 verbose request no auth needed 20 info attempt registry request try #1 at 5:59:08 PM 21 verbose request id 811f6f5ae5146fbb 22 http request GET https://registry.npmjs.org/avn-nvm 23 http 200 https://registry.npmjs.org/avn-nvm 24 verbose headers { server: 'CouchDB/1.5.0 (Erlang OTP/R16B03)', 24 verbose headers etag: '"E40Y5YZ1VZOP312VDNF87OHVO"', 24 verbose headers 'content-type': 'application/json', 24 verbose headers 'content-encoding': 'gzip', 24 verbose headers 'cache-control': 'max-age=300', 24 verbose headers 'content-length': '2499', 24 verbose headers 'accept-ranges': 'bytes', 24 verbose headers date: 'Thu, 09 Jun 2016 17:59:09 GMT', 24 verbose headers via: '1.1 varnish', 24 verbose headers age: '0', 24 verbose headers connection: 'keep-alive', 24 verbose headers 'x-served-by': 'cache-jfk1023-JFK', 24 verbose headers 'x-cache': 'MISS', 24 verbose headers 'x-cache-hits': '0', 24 verbose headers 'x-timer': 'S1465495149.341465,VS0,VE398', 24 verbose headers vary: 'Accept-Encoding' } 25 silly get cb [ 200, 25 silly get { server: 'CouchDB/1.5.0 (Erlang OTP/R16B03)', 25 silly get etag: '"E40Y5YZ1VZOP312VDNF87OHVO"', 25 silly get 'content-type': 'application/json', 25 silly get 'content-encoding': 'gzip', 25 silly get 'cache-control': 'max-age=300', 25 silly get 'content-length': '2499', 25 silly get 'accept-ranges': 'bytes', 25 silly get date: 'Thu, 09 Jun 2016 17:59:09 GMT', 25 silly get via: '1.1 varnish', 25 silly get age: '0', 25 silly get connection: 'keep-alive', 25 silly get 'x-served-by': 'cache-jfk1023-JFK', 25 silly get 'x-cache': 'MISS', 25 silly get 'x-cache-hits': '0', 25 silly get 'x-timer': 'S1465495149.341465,VS0,VE398', 25 silly get vary: 'Accept-Encoding' } ] 26 verbose get saving avn-nvm to /home/vagrant/.npm/registry.npmjs.org/avn-nvm/.cache.json 27 verbose correctMkdir /home/vagrant/.npm correctMkdir not in flight; initializing 28 silly addNameTag next cb for avn-nvm with tag latest 29 silly addNamed avn-nvm@0.2.1 30 verbose addNamed "0.2.1" is a plain semver version for avn-nvm 31 silly mapToRegistry name avn-nvm 32 silly mapToRegistry using default registry 33 silly mapToRegistry registry https://registry.npmjs.org/ 34 silly mapToRegistry data Result { 34 silly mapToRegistry raw: 'avn-nvm', 34 silly mapToRegistry scope: null, 34 silly mapToRegistry name: 'avn-nvm', 34 silly mapToRegistry rawSpec: '', 34 silly mapToRegistry spec: 'latest', 34 silly mapToRegistry type: 'tag' } 35 silly mapToRegistry uri https://registry.npmjs.org/avn-nvm 36 verbose addRemoteTarball https://registry.npmjs.org/avn-nvm/-/avn-nvm-0.2.1.tgz not in flight; adding 37 verbose addRemoteTarball [ 'https://registry.npmjs.org/avn-nvm/-/avn-nvm-0.2.1.tgz', 37 verbose addRemoteTarball 'e682a4bdd02991f00bd2c8fd9b8c1122d33238f0' ] 38 info retry fetch attempt 1 at 5:59:08 PM 39 info attempt registry request try #1 at 5:59:08 PM 40 http fetch GET https://registry.npmjs.org/avn-nvm/-/avn-nvm-0.2.1.tgz 41 http fetch 200 https://registry.npmjs.org/avn-nvm/-/avn-nvm-0.2.1.tgz 42 silly fetchAndShaCheck shasum e682a4bdd02991f00bd2c8fd9b8c1122d33238f0 43 verbose addTmpTarball /tmp/npm-1445-4c662ee5/registry.npmjs.org/avn-nvm/-/avn-nvm-0.2.1.tgz not in flight; adding 44 verbose addTmpTarball already have metadata; skipping unpack for avn-nvm@0.2.1 45 verbose correctMkdir /home/vagrant/.npm correctMkdir not in flight; initializing 46 silly cache afterAdd avn-nvm@0.2.1 47 verbose afterAdd /home/vagrant/.npm/avn-nvm/0.2.1/package/package.json not in flight; writing 48 verbose correctMkdir /home/vagrant/.npm correctMkdir not in flight; initializing 49 verbose afterAdd /home/vagrant/.npm/avn-nvm/0.2.1/package/package.json written 50 silly install resolved [ { name: 'avn-nvm', 50 silly install resolved version: '0.2.1', 50 silly install resolved description: 'avn plugin for nvm', 50 silly install resolved homepage: 'https://github.com/wbyoung/avn-nvm', 50 silly install resolved bugs: { url: 'https://github.com/wbyoung/avn-nvm/issues' }, 50 silly install resolved main: 'index.js', 50 silly install resolved scripts: 50 silly install resolved { test: 'jshint . && jscs . && istanbul cover node_modules/.bin/_mocha --report html --', 50 silly install resolved 'test-travis': 'jshint . && jscs . && istanbul cover node_modules/.bin/_mocha --report lcovonly --' }, 50 silly install resolved repository: { type: 'git', url: 'git://github.com/wbyoung/avn-nvm.git' }, 50 silly install resolved keywords: 50 silly install resolved [ 'avn', 50 silly install resolved 'node', 50 silly install resolved 'n', 50 silly install resolved 'version', 50 silly install resolved 'switch', 50 silly install resolved 'automatic', 50 silly install resolved 'cd', 50 silly install resolved 'change', 50 silly install resolved 'directory' ], 50 silly install resolved author: { name: 'Whitney Young' }, 50 silly install resolved license: 'MIT', 50 silly install resolved dependencies: 50 silly install resolved { bluebird: '^2.9.15', 50 silly install resolved 'concat-stream': '^1.4.6', 50 silly install resolved semver: '^4.3.6' }, 50 silly install resolved devDependencies: 50 silly install resolved { chai: '^2.2.0', 50 silly install resolved coveralls: '^2.11.2', 50 silly install resolved istanbul: '^0.3.2', 50 silly install resolved jscs: '^1.13.1', 50 silly install resolved 'jscs-jsdoc': '^1.1.0', 50 silly install resolved jshint: '^2.8.0', 50 silly install resolved mocha: '^2.0.1', 50 silly install resolved sinon: '^1.14.1' }, 50 silly install resolved peerDependencies: { avn: '0.2.x' }, 50 silly install resolved gitHead: 'bf632e3866f51b8c7f5d59d43526fb6ffe91f8f6', 50 silly install resolved _id: 'avn-nvm@0.2.1', 50 silly install resolved _shasum: 'e682a4bdd02991f00bd2c8fd9b8c1122d33238f0', 50 silly install resolved _from: 'avn-nvm@latest', 50 silly install resolved _npmVersion: '1.4.28', 50 silly install resolved _npmUser: { name: 'wbyoung', email: 'wbyoung@fadingred.com' }, 50 silly install resolved maintainers: [ [Object] ], 50 silly install resolved dist: 50 silly install resolved { shasum: 'e682a4bdd02991f00bd2c8fd9b8c1122d33238f0', 50 silly install resolved tarball: 'https://registry.npmjs.org/avn-nvm/-/avn-nvm-0.2.1.tgz' }, 50 silly install resolved directories: {}, 50 silly install resolved _resolved: 'https://registry.npmjs.org/avn-nvm/-/avn-nvm-0.2.1.tgz' } ] 51 info install avn-nvm@0.2.1 into /usr/lib 52 info installOne avn-nvm@0.2.1 53 verbose installOne of avn-nvm to /usr/lib not in flight; installing 54 verbose correctMkdir /home/vagrant/.npm/_locks correctMkdir not in flight; initializing 55 verbose lock using /home/vagrant/.npm/_locks/avn-nvm-10675c28dc426949.lock for /usr/lib/node_modules/avn-nvm 56 silly install write writing avn-nvm 0.2.1 to /usr/lib/node_modules/avn-nvm 57 verbose unbuild lib/node_modules/avn-nvm 58 silly gentlyRm /usr/lib/node_modules/avn-nvm is being purged from base /usr 59 verbose gentlyRm don't care about contents; nuking /usr/lib/node_modules/avn-nvm 60 verbose tar unpack /home/vagrant/.npm/avn-nvm/0.2.1/package.tgz 61 verbose tar unpacking to /usr/lib/node_modules/avn-nvm 62 silly gentlyRm /usr/lib/node_modules/avn-nvm is being purged 63 verbose gentlyRm don't care about contents; nuking /usr/lib/node_modules/avn-nvm 64 silly gunzTarPerm modes [ '775', '664' ] 65 error tar.unpack untar error /home/vagrant/.npm/avn-nvm/0.2.1/package.tgz 66 verbose unlock done using /home/vagrant/.npm/_locks/avn-nvm-10675c28dc426949.lock for /usr/lib/node_modules/avn-nvm 67 verbose fstream_path /usr/lib/node_modules/avn-nvm 68 verbose fstream_type Directory 69 verbose fstream_class DirWriter 70 verbose stack Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/avn-nvm' 70 verbose stack at Error (native) 71 verbose fstream_stack /usr/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:35:25 71 verbose fstream_stack /usr/lib/node_modules/npm/node_modules/mkdirp/index.js:47:53 71 verbose fstream_stack FSReqWrap.oncomplete (fs.js:82:15) 72 verbose cwd /home/vagrant 73 error Linux 4.4.0-21-generic 74 error argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--global" "avn-nvm" 75 error node v4.4.5 76 error npm v2.15.5 77 error path /usr/lib/node_modules/avn-nvm 78 error code EACCES 79 error errno -13 80 error syscall mkdir 81 error Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/avn-nvm' 81 error at Error (native) 81 error { [Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/avn-nvm'] 81 error errno: -13, 81 error code: 'EACCES', 81 error syscall: 'mkdir', 81 error path: '/usr/lib/node_modules/avn-nvm', 81 error fstream_type: 'Directory', 81 error fstream_path: '/usr/lib/node_modules/avn-nvm', 81 error fstream_class: 'DirWriter', 81 error fstream_stack: 81 error [ '/usr/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:35:25', 81 error '/usr/lib/node_modules/npm/node_modules/mkdirp/index.js:47:53', 81 error 'FSReqWrap.oncomplete (fs.js:82:15)' ] } 82 error Please try running this command again as root/Administrator. 83 verbose exit [ -13, true ] 84 verbose unbuild lib/node_modules/avn-nvm 85 silly gentlyRm /usr/lib/node_modules/avn-nvm is being purged from base /usr 86 verbose gentlyRm don't care about contents; nuking /usr/lib/node_modules/avn-nvm