Mac shortcut Finishing and node basic usage

Source: Internet
Author: User
Tags install node

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.