NodeJS mirror source configuration

NodeJS source configuration

Source: Moeomu’s blog

Installation

Debain(Ubuntu, etc.)

1
2
apt install node
apt install yarn

macOS

1
2
brew install node
brew install yarn

Configure mirror source

Set as Taobao mirror source

1
2
npm config set registry https://registry.npm.taobao.org/
yarn config set registry https://registry.npm.taobao.org/

Reset to official mirror source

1
2
npm config set registry https://registry.npmjs.org/
yarn config set registry https://registry.yarnpkg.com/
Built with Hugo
Theme Stack designed by Jimmy