Introduction
Nexus for npm & yarn local repository.
Setting up on Mac
- Install Nexus on Mac with brew
- Login
- Create Repository (npm & yarn)
- Developer Setting
Install Nexus on Mac
brew install nexus
nexus version
# Server: Nexus/3.30.0-01 (OSS)
Login
- Default id : admin
// Default Password
cat /usr/local/var/nexus/admin.password
npm (proxy) Repository
repositories – create repository – npm(proxy)
- Name: npm-central
- Remote storage: https://registry.npmjs.org
Developer Setting (Set Config)
npm config set registry http://localhost:8081/repository/npm-central/
npm config list
# test
npm install npmrc -g
yarn (proxy) Repository
repositories – create repository – npm(proxy)
- Name: yarn-central
- Remote storage: https://registry.yarnpkg.com
Developer Setting (Set Config)
yarn config set registry http://localhost:8081/repository/yarn-central/
yarn config list
# test
yarn global add npmrc