Skip to content

Instantly share code, notes, and snippets.

@AymarN
Created October 7, 2019 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AymarN/5c1bdd6d5bb6c59641f5f3751e6afc73 to your computer and use it in GitHub Desktop.
Save AymarN/5c1bdd6d5bb6c59641f5f3751e6afc73 to your computer and use it in GitHub Desktop.
npm brew
Last login: Mon Oct 7 10:37:51 on ttys001
~ $ npm prefix -g
/usr/local/Cellar/node/9.3.0_1
~ $ npm install -g n
/usr/local/Cellar/node/9.3.0_1/bin/n -> /usr/local/Cellar/node/9.3.0_1/lib/node_modules/n/bin/n
+ n@6.0.1
added 1 package from 4 contributors in 0.246s
~ $ cd /usr/local/Cellar/node/9.3.0_1/lib/node_modules/
node_modules $ ls
appium n
node_modules $ npm uninstall n
removed 1 package in 0.056s
node_modules $ npm uninstall n -g
up to date in 0.024s
node_modules $ cd /usr/local/bin
:bin Aymar$ ls -a
. ideviceimagemounter
.. ideviceinfo
appium-doctor ideviceinstaller
asn1Coding idevicename
asn1Decoding idevicenotificationproxy
asn1Parser idevicepair
brew ideviceprovision
capinfos idevicescreenshot
carthage idevicesyslog
dftest ionic
dumpcap ios-deploy
editcap iproxy
git mergecap
git-credential-osxkeychain n
git-cvsserver node
git-shell npm
gitk npx
idevice_id plistutil
idevicebackup randpkt
idevicebackup2 rawshark
idevicecrashreport text2pcap
idevicedate tshark
idevicedebug wireshark
idevicedebugserverproxy zipcmp
idevicediagnostics zipmerge
ideviceenterrecovery ziptool
:bin $ rm -rf npm
MBP-de-Hafedh:bin Aymar$ ls
appium-doctor git-shell ideviceinstaller npx
asn1Coding gitk idevicename plistutil
asn1Decoding idevice_id idevicenotificationproxy randpkt
asn1Parser idevicebackup idevicepair rawshark
brew idevicebackup2 ideviceprovision text2pcap
capinfos idevicecrashreport idevicescreenshot tshark
carthage idevicedate idevicesyslog wireshark
dftest idevicedebug ionic zipcmp
dumpcap idevicedebugserverproxy ios-deploy zipmerge
editcap idevicediagnostics iproxy ziptool
git ideviceenterrecovery mergecap
git-credential-osxkeychain ideviceimagemounter n
git-cvsserver ideviceinfo node
:bin $ npm uninstall -g
-sh: npm: command not found
:bin $ npm prefix -g
-sh: npm: command not found
MBP-de-Hafedh:bin Aymar$ nvm uninstall
-sh: nvm: command not found
:bin $ brew uninstall node
Uninstalling /usr/local/Cellar/node/9.3.0_1... (18,056 files, 194.9MB)
MBP-de-Hafedh:bin Aymar$ ls -a
. git-credential-osxkeychain ideviceimagemounter n
.. git-cvsserver ideviceinfo npx
appium-doctor git-shell ideviceinstaller plistutil
asn1Coding gitk idevicename randpkt
asn1Decoding idevice_id idevicenotificationproxy rawshark
asn1Parser idevicebackup idevicepair text2pcap
brew idevicebackup2 ideviceprovision tshark
capinfos idevicecrashreport idevicescreenshot wireshark
carthage idevicedate idevicesyslog zipcmp
dftest idevicedebug ionic zipmerge
dumpcap idevicedebugserverproxy ios-deploy ziptool
editcap idevicediagnostics iproxy
git ideviceenterrecovery mergecap
:bin $ cd /usr/local/lib
:lib $ ls
libimobiledevice.6.dylib libplist.a libusb-1.0.dylib libzip.dylib
libimobiledevice.a libplist.dylib libusbmuxd.4.dylib node_modules
libimobiledevice.dylib libtasn1.6.dylib libusbmuxd.a pkgconfig
libplist++.3.dylib libtasn1.a libusbmuxd.dylib python2.7
libplist++.a libtasn1.dylib libzip
libplist++.dylib libusb-1.0.0.dylib libzip.5.dylib
libplist.3.dylib libusb-1.0.a libzip.a
:lib $ cd /usr/local/include
:include $ ls
libimobiledevice libusb-1.0 usbmuxd-proto.h zip.h
libtasn1.h plist usbmuxd.h
:include $ cd /usr/local/include
:include $ cd /usr/local/bin
:bin $ ls
appium-doctor git-cvsserver ideviceimagemounter mergecap
asn1Coding git-shell ideviceinfo n
asn1Decoding gitk ideviceinstaller npx
asn1Parser idevice_id idevicename plistutil
brew idevicebackup idevicenotificationproxy randpkt
capinfos idevicebackup2 idevicepair rawshark
carthage idevicecrashreport ideviceprovision text2pcap
dftest idevicedate idevicescreenshot tshark
dumpcap idevicedebug idevicesyslog wireshark
editcap idevicedebugserverproxy ionic zipcmp
git idevicediagnostics ios-deploy zipmerge
git-credential-osxkeychain ideviceenterrecovery iproxy ziptool
:bin $ node -v
-sh: node: command not found
:bin $ npm -v
-sh: npm: command not found
:bin $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment