NVM, NRM and yarn

Time:2020-3-29

nvm

Node Version Management

  • NVM list view all installed node versions
  • NVM install version No. install the node of the specified version
  • NVM use version number switches to the specified version number
  • NVM proxy proxy address configuration proxy for download

nrm(node registry manager)

Download using Taobao’s cnpm image source:

npm install --save express --registry=https://registry.npm.taobao.org

First:

npm install -g nrm

Yarn

Yarn is a Facebook open source package management tool similar to NPM, which is what NPM can do,
Yarn can do it, too.

Installation:

npm install -g yarn

Use:

# npm init
yarn init

#NPM install -- save package name
Yarn add package name

#Offline installation
Yarn add package [email protected]版本号 --offline

# npm install
yarn install

#NPM uninstall package name
Yarn remove package name

#NPM install - G package name
Yarn global add package name

#NPM uninstall - G package name
Yarn global remove package name

Recommended Today

Configure Apache to support PHP in the Apache main configuration file httpd.conf Include custom profile in

In Apache’s main configuration file / conf/ http.conf Add at the bottom Include “D:workspace_phpapache-php.conf” The file path can be any In D: workspace_ Create under PHP file apache- php.conf file Its specific content is [html] view plain copy PHP-Module setup LoadFile “D:/xampp/php/php5ts.dll” LoadModule php5_module “D:/xampp/php/php5apache2_2.dll” <FilesMatch “.php$”> SetHandler application/x-httpd-php </FilesMatch> <FilesMatch “.phps$”> SetHandler application/x-httpd-php-source </FilesMatch> […]