Skip to content

Instantly share code, notes, and snippets.

@robhrt7
Last active December 18, 2015 10:59
Show Gist options
  • Save robhrt7/5771971 to your computer and use it in GitHub Desktop.
Save robhrt7/5771971 to your computer and use it in GitHub Desktop.
Hoodie local-tld install error - npm ERR! weird error 126
operatino:Apps operatino$ npm install -g local-tld
npm http GET https://registry.npmjs.org/local-tld
npm http 304 https://registry.npmjs.org/local-tld
npm http GET https://github.com/sstephenson/dnsserver.js/archive/library.tar.gz
npm http GET https://registry.npmjs.org/watchfd
npm http GET https://registry.npmjs.org/http-proxy
npm http 304 https://registry.npmjs.org/watchfd
npm http 304 https://registry.npmjs.org/http-proxy
npm http 200 https://github.com/sstephenson/dnsserver.js/archive/library.tar.gz
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/pkginfo
npm http GET https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/pkginfo
npm http 304 https://registry.npmjs.org/colors
npm http 304 https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/wordwrap
npm http 304 https://registry.npmjs.org/wordwrap
> [email protected] postinstall /usr/local/lib/node_modules/local-tld
> ./bin/local-tld-setup
++ pwd
+ PWD=/usr/local/lib/node_modules/local-tld
++ dirname ./bin/local-tld-setup
+ MY_PATH=./bin
++ cd ./bin
++ pwd
+ MY_PATH=/usr/local/lib/node_modules/local-tld/bin
+ ETC=/usr/local/lib/node_modules/local-tld/bin/../etc
++ npm root -g
/usr/local/lib/node_modules/.bin/npm: line 2: /usr/local/lib/node_modules/.bin/node: No such file or directory
/usr/local/lib/node_modules/.bin/npm: line 2: exec: /usr/local/lib/node_modules/.bin/node: cannot execute: No such file or directory
+ NODE_ROOT=
> [email protected] preuninstall /usr/local/lib/node_modules/local-tld
> ./bin/local-tld-uninstall
++ id -u
+ '[' 501 -eq 0 ']'
+ SUDO=sudo
+ sudo launchctl unload /Library/LaunchDaemons/ie.hood.local-tld-firewall.plist
Password:
launchctl: Couldn't stat("/Library/LaunchDaemons/ie.hood.local-tld-firewall.plist"): No such file or directory
nothing found to unload
+ true
+ launchctl unload /Users/operatino/Library/LaunchAgents/ie.hood.local-tld-service.plist
launchctl: Couldn't stat("/Users/operatino/Library/LaunchAgents/ie.hood.local-tld-service.plist"): No such file or directory
nothing found to unload
+ true
+ sudo rm -f /Library/LaunchDaemons/ie.hood.local-tld-firewall.plist
+ rm -f /Users/operatino/Library/LaunchAgents/ie.hood.local-tld-service.plist
+ sudo rm -f /etc/resolver/dev
npm ERR! weird error 126
npm ERR! not ok code 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment