The article is as daily accumulation and collation, but also for a long time did not tidy up the relevant knowledge of node, recently turned over their own Youdao cloud notes, how a disorderly word, re-organized.
First, Mac common shortcut keys
Command+m: Minimizing windows
Command+t: Open a new tab in the browser
Command+w: Close Window
COMMAND+Q: Exiting the program
Command + R: Refresh page
Command+shift+3: Fullscreen
Command+shift + 4: Area
Control+space: Open Spotlight
Second, Brew
Brew, also known as homebrew, is a software package management tool on Mac OSX that makes it easy to install software or uninstall software on Mac, and only requires one command, which is equivalent to using the command line to manage system software.
The installation commands are as follows:
CURL-LSSF Http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz-c/usr/local--strip 1
Command
Brew Install XX installation software (e.g. Brew install node)
Brew Uninstall XX Uninstall software
Brew search software (e.g. brew search/node*/)
Brew List lists installed software
Brew Update Update Brew
Brew Home opens Brew's official website with a browser
Brew Info Displays software information
Brew Deps Show Package dependencies
Third, the basic installation of node
1. Installation method
Brew Install node automatically installs node and NPM.
2. node and NPM update
sudo npm install-g n Install node module
N Stable Update
3. NPM Common Commands
NPM Install <name>--save installs the XXX package while writing information to the Package.json file
NPM init boot to create a Package.json file
NPM Remove <name> Remove Package
NPM Update <name> Update package
NPM LS lists all the packages currently installed
NPM root View the installation path for the current package
NPM root-g View the installation path for a global package
Mac shortcut Finishing and node basic usage