alexkirsz / dispatch-proxy

Combine internet connections, increase your download speed
MIT License
3.47k stars 245 forks source link

Error when npm install -g dispatch-proxy #66

Closed d3vilsn0w closed 8 years ago

d3vilsn0w commented 8 years ago

A-MBP:~$ npm install -g dispatch-proxy npm ERR! tar.unpack untar error /Users/A/.npm/dispatch-proxy/0.1.4/package.tgz npm ERR! Darwin 14.5.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "dispatch-proxy" npm ERR! node v4.5.0 npm ERR! npm v2.15.9 npm ERR! path /usr/local/lib/node_modules/dispatch-proxy npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall mkdir

npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/dispatch-proxy' npm ERR! at Error (native) npm ERR! { [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/dispatch-proxy'] npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'mkdir', npm ERR! path: '/usr/local/lib/node_modules/dispatch-proxy', npm ERR! fstream_type: 'Directory', npm ERR! fstream_path: '/usr/local/lib/node_modules/dispatch-proxy', npm ERR! fstream_class: 'DirWriter', npm ERR! fstream_stack: npm ERR! [ '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:35:25', npm ERR! '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:47:53', npm ERR! 'FSReqWrap.oncomplete (fs.js:82:15)' ] } npm ERR! npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request: npm ERR! /Users/a/npm-debug.log

d3vilsn0w commented 8 years ago

LOG FILE

Last login: Sun Sep 4 17:17:18 on ttys000 A-MBP:~ A$ sudo npm install -g dispatch-proxy Password: Sorry, try again. Password: Sorry, try again. Password: Sorry, try again. sudo: 3 incorrect password attempts A-MBP:~ A$ sudo npm install -g dispatch-proxy Password: /usr/local/bin/dispatch -> /usr/local/lib/node_modules/dispatch-proxy/bin/dispatch.js dispatch-proxy@0.1.4 /usr/local/lib/node_modules/dispatch-proxy ├── commander@2.0.0 ├── tmpl-log@0.0.3 └── socks-handler@0.2.1 (ip@0.1.0, through@2.3.4) A-MBP:~ A$ npm update -g dispatch-proxy A-MBP:~ A$ npm install -g dispatch-proxy npm ERR! Darwin 14.5.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "dispatch-proxy" npm ERR! node v4.5.0 npm ERR! npm v2.15.9 npm ERR! path /usr/local/lib/node_modules/dispatch-proxy npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall rmdir

npm ERR! Error: EACCES: permission denied, rmdir '/usr/local/lib/node_modules/dispatch-proxy' npm ERR! at Error (native) npm ERR! { [Error: EACCES: permission denied, rmdir '/usr/local/lib/node_modules/dispatch-proxy'] npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'rmdir', npm ERR! path: '/usr/local/lib/node_modules/dispatch-proxy' } npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! error rolling back Error: EACCES: permission denied, rmdir '/usr/local/lib/node_modules/dispatch-proxy' npm ERR! error rolling back at Error (native) npm ERR! error rolling back { [Error: EACCES: permission denied, rmdir '/usr/local/lib/node_modules/dispatch-proxy'] npm ERR! error rolling back errno: -13, npm ERR! error rolling back code: 'EACCES', npm ERR! error rolling back syscall: 'rmdir', npm ERR! error rolling back path: '/usr/local/lib/node_modules/dispatch-proxy' }

npm ERR! Please include the following file with any support request: npm ERR! /Users/A/npm-debug.log A-MBP:~ A$ dispatch start -bash: dispatch: command not found A-MBP:~ A$ sudo -i npm install -g dispatch-proxy /usr/local/bin/dispatch -> /usr/local/lib/node_modules/dispatch-proxy/bin/dispatch.js dispatch-proxy@0.1.4 /usr/local/lib/node_modules/dispatch-proxy ├── commander@2.0.0 ├── tmpl-log@0.0.3 └── socks-handler@0.2.1 (ip@0.1.0, through@2.3.4) A-MBP:~ A$ npm install check-node-version check-node-version@1.1.2 node_modules/check-node-version ├── semver@5.3.0 ├── run-parallel@1.1.6 └── minimist@1.2.0 A-MBP:~ A$ check-node-version -bash: check-node-version: command not found A-MBP:~ A$ --node -bash: --node: command not found A-MBP:~ A$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" -e:82: warning: Insecure world writable dir /usr/local in PATH, mode 040777 It appears Homebrew is already installed. If your intent is to reinstall you should do the following before running this installer again: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)" The current contents of /usr/local are bin Caskroom CODEOFCONDUCT.md etc hw_mobile_userdata include lib Library LICENSE.txt README.md share .git .github .gitignore A-MBP:~ A$ brew install node ==> Downloading https://homebrew.bintray.com/bottles/node-6.3.1.yosemite.bottle. ######################################################################## 100.0% ==> Pouring node-6.3.1.yosemite.bottle.tar.gz Error: The brew link step did not complete successfully The formula built, but is not symlinked into /usr/local Could not symlink bin/node Target /usr/local/bin/node already exists. You may want to remove it: rm '/usr/local/bin/node'

To force the link and overwrite all conflicting files: brew link --overwrite node

To list all files that would be deleted: brew link --overwrite --dry-run node

Possible conflicting files are: /usr/local/bin/node /usr/local/include/node/android-ifaddrs.h /usr/local/include/node/ares.h /usr/local/include/node/ares_version.h /usr/local/include/node/common.gypi /usr/local/include/node/config.gypi /usr/local/include/node/libplatform/libplatform.h /usr/local/include/node/nameser.h /usr/local/include/node/node.h /usr/local/include/node/node_buffer.h /usr/local/include/node/node_object_wrap.h /usr/local/include/node/node_version.h /usr/local/include/node/openssl/aes.h /usr/local/include/node/openssl/archs/BSD-x86/opensslconf.h /usr/local/include/node/openssl/archs/BSD-x86_64/opensslconf.h /usr/local/include/node/openssl/archs/VC-WIN32/opensslconf.h /usr/local/include/node/openssl/archs/VC-WIN64A/opensslconf.h /usr/local/include/node/openssl/archs/aix-gcc/opensslconf.h /usr/local/include/node/openssl/archs/aix64-gcc/opensslconf.h /usr/local/include/node/openssl/archs/darwin-i386-cc/opensslconf.h /usr/local/include/node/openssl/archs/darwin64-x86_64-cc/opensslconf.h /usr/local/include/node/openssl/archs/linux-aarch64/opensslconf.h /usr/local/include/node/openssl/archs/linux-armv4/opensslconf.h /usr/local/include/node/openssl/archs/linux-elf/opensslconf.h /usr/local/include/node/openssl/archs/linux-ppc/opensslconf.h /usr/local/include/node/openssl/archs/linux-ppc64/opensslconf.h /usr/local/include/node/openssl/archs/linux-x32/opensslconf.h /usr/local/include/node/openssl/archs/linux-x86_64/opensslconf.h /usr/local/include/node/openssl/archs/linux32-s390x/opensslconf.h /usr/local/include/node/openssl/archs/linux64-s390x/opensslconf.h /usr/local/include/node/openssl/archs/solaris-x86-gcc/opensslconf.h /usr/local/include/node/openssl/archs/solaris64-x86_64-gcc/opensslconf.h /usr/local/include/node/openssl/asn1.h /usr/local/include/node/openssl/asn1_mac.h /usr/local/include/node/openssl/asn1t.h /usr/local/include/node/openssl/bio.h /usr/local/include/node/openssl/blowfish.h /usr/local/include/node/openssl/bn.h /usr/local/include/node/openssl/buffer.h /usr/local/include/node/openssl/camellia.h /usr/local/include/node/openssl/cast.h /usr/local/include/node/openssl/cmac.h /usr/local/include/node/openssl/cms.h /usr/local/include/node/openssl/comp.h /usr/local/include/node/openssl/conf.h /usr/local/include/node/openssl/conf_api.h /usr/local/include/node/openssl/crypto.h /usr/local/include/node/openssl/des.h /usr/local/include/node/openssl/des_old.h /usr/local/include/node/openssl/dh.h /usr/local/include/node/openssl/dsa.h /usr/local/include/node/openssl/dso.h /usr/local/include/node/openssl/dtls1.h /usr/local/include/node/openssl/e_os2.h /usr/local/include/node/openssl/ebcdic.h /usr/local/include/node/openssl/ec.h /usr/local/include/node/openssl/ecdh.h /usr/local/include/node/openssl/ecdsa.h /usr/local/include/node/openssl/engine.h /usr/local/include/node/openssl/err.h /usr/local/include/node/openssl/evp.h /usr/local/include/node/openssl/hmac.h /usr/local/include/node/openssl/idea.h /usr/local/include/node/openssl/krb5_asn.h /usr/local/include/node/openssl/kssl.h /usr/local/include/node/openssl/lhash.h /usr/local/include/node/openssl/md4.h /usr/local/include/node/openssl/md5.h /usr/local/include/node/openssl/mdc2.h /usr/local/include/node/openssl/modes.h /usr/local/include/node/openssl/obj_mac.h /usr/local/include/node/openssl/objects.h /usr/local/include/node/openssl/ocsp.h /usr/local/include/node/openssl/opensslconf.h /usr/local/include/node/openssl/opensslv.h /usr/local/include/node/openssl/ossl_typ.h /usr/local/include/node/openssl/pem.h /usr/local/include/node/openssl/pem2.h /usr/local/include/node/openssl/pkcs12.h /usr/local/include/node/openssl/pkcs7.h /usr/local/include/node/openssl/pqueue.h /usr/local/include/node/openssl/rand.h /usr/local/include/node/openssl/rc2.h /usr/local/include/node/openssl/rc4.h /usr/local/include/node/openssl/ripemd.h /usr/local/include/node/openssl/rsa.h /usr/local/include/node/openssl/safestack.h /usr/local/include/node/openssl/seed.h /usr/local/include/node/openssl/sha.h /usr/local/include/node/openssl/srp.h /usr/local/include/node/openssl/srtp.h /usr/local/include/node/openssl/ssl.h /usr/local/include/node/openssl/ssl2.h /usr/local/include/node/openssl/ssl23.h /usr/local/include/node/openssl/ssl3.h /usr/local/include/node/openssl/stack.h /usr/local/include/node/openssl/symhacks.h /usr/local/include/node/openssl/tls1.h /usr/local/include/node/openssl/ts.h /usr/local/include/node/openssl/txt_db.h /usr/local/include/node/openssl/ui.h /usr/local/include/node/openssl/ui_compat.h /usr/local/include/node/openssl/whrlpool.h /usr/local/include/node/openssl/x509.h /usr/local/include/node/openssl/x509_vfy.h /usr/local/include/node/openssl/x509v3.h /usr/local/include/node/pthread-barrier.h /usr/local/include/node/pthread-fixes.h /usr/local/include/node/stdint-msvc2008.h /usr/local/include/node/tree.h /usr/local/include/node/uv-aix.h /usr/local/include/node/uv-bsd.h /usr/local/include/node/uv-darwin.h /usr/local/include/node/uv-errno.h /usr/local/include/node/uv-linux.h /usr/local/include/node/uv-sunos.h /usr/local/include/node/uv-threadpool.h /usr/local/include/node/uv-unix.h /usr/local/include/node/uv-version.h /usr/local/include/node/uv-win.h /usr/local/include/node/uv.h /usr/local/include/node/v8-debug.h /usr/local/include/node/v8-platform.h /usr/local/include/node/v8-profiler.h /usr/local/include/node/v8-testing.h /usr/local/include/node/v8-util.h /usr/local/include/node/v8-version.h /usr/local/include/node/v8.h /usr/local/include/node/v8config.h /usr/local/include/node/zconf.h /usr/local/include/node/zlib.h /usr/local/share/doc/node/gdbinit /usr/local/share/man/man1/node.1 /usr/local/share/systemtap/tapset/node.stp /usr/local/lib/dtrace/node.d Warning: The post-install step did not complete successfully You can try again using brew postinstall node ==> Caveats Please note by default only English locale support is provided. If you need full locale support you should either rebuild with full icu: brew reinstall node --with-full-icu or add full icu data at runtime following: https://github.com/nodejs/node/wiki/Intl#using-and-customizing-the-small-icu-build

Bash completion has been installed to: /usr/local/etc/bash_completion.d ==> Summary 🍺 /usr/local/Cellar/node/6.3.1: 3,829 files, 40.0M A-MBP:~ A$ node -v v4.5.0 A-MBP:~ A$ brew upgrade node Error: node 6.3.1 already installed A-MBP:~ A$ brew install dispatch-proxy Error: No available formula with the name "dispatch-proxy" ==> Searching for similarly named formulae... Error: No similarly named formulae found. ==> Searching taps... Error: No formulae found in taps. ==> You haven't updated Homebrew in a while. A formula for dispatch-proxy might have been added recently. Run brew update to get the latest Homebrew updates! A-MBP:~ A$ install -g dispatch-proxy usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 file2 install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 ... fileN directory install -d [-v] [-g group] [-m mode] [-o owner] directory ... A-MBP:~ A$ install -g dispatch-proxy usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 file2 install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 ... fileN directory install -d [-v] [-g group] [-m mode] [-o owner] directory ... A-MBP:~ A$ npm install -g dispatch-proxy npm ERR! Darwin 14.5.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "dispatch-proxy" npm ERR! node v4.5.0 npm ERR! npm v2.15.9 npm ERR! path /usr/local/lib/node_modules/dispatch-proxy npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall rmdir

npm ERR! Error: EACCES: permission denied, rmdir '/usr/local/lib/node_modules/dispatch-proxy' npm ERR! at Error (native) npm ERR! { [Error: EACCES: permission denied, rmdir '/usr/local/lib/node_modules/dispatch-proxy'] npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'rmdir', npm ERR! path: '/usr/local/lib/node_modules/dispatch-proxy' } npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! error rolling back Error: EACCES: permission denied, rmdir '/usr/local/lib/node_modules/dispatch-proxy' npm ERR! error rolling back at Error (native) npm ERR! error rolling back { [Error: EACCES: permission denied, rmdir '/usr/local/lib/node_modules/dispatch-proxy'] npm ERR! error rolling back errno: -13, npm ERR! error rolling back code: 'EACCES', npm ERR! error rolling back syscall: 'rmdir', npm ERR! error rolling back path: '/usr/local/lib/node_modules/dispatch-proxy' }

npm ERR! Please include the following file with any support request: npm ERR! /Users/A/npm-debug.log A-MBP:~ A$ vi /Users/A/npm-debug.log

0 info it worked if it ends with ok 1 verbose cli [ '/usr/local/bin/node', 1 verbose cli '/usr/local/bin/npm', 1 verbose cli 'install', 1 verbose cli '-g', 1 verbose cli 'dispatch-proxy' ] 2 info using npm@2.15.9 3 info using node@v4.5.0 4 verbose install initial load of /usr/local/lib/package.json 5 verbose readDependencies loading dependencies from /usr/local/lib/package.json 6 silly cache add args [ 'dispatch-proxy', null ] 7 verbose cache add spec dispatch-proxy 8 silly cache add parsed spec Result { 8 silly cache add raw: 'dispatch-proxy', 8 silly cache add scope: null, 8 silly cache add name: 'dispatch-proxy', 8 silly cache add rawSpec: '', 8 silly cache add spec: 'latest', 8 silly cache add type: 'tag' } 9 silly addNamed dispatch-proxy@latest 10 verbose addNamed "latest" is being treated as a dist-tag for dispatch-proxy 11 info addNameTag [ 'dispatch-proxy', 'latest' ] 12 silly mapToRegistry name dispatch-proxy

d3vilsn0w commented 8 years ago

Used Sudo and it fixed. Sorry my mistake.