npm-registry-guide/README.md
2021-07-29 11:11:04 +07:00

44 lines
748 B
Markdown

# Config Proxy for Yarn
```bash
yarn config set registry https://r.ctdn.net
```
# Config Proxy for NPM
```bash
npm config set registry https://r.ctdn.net
```
# Config/Set NPM Registry
```bash
npm config set registry https://npm.osa.cubetiqs.com
```
# Config/Set NPM Scope For Private
```bash
npm config set scope @cubetiq
```
# Login/Registry to NPM Registry
```bash
npm login https://npm.osa.cubetiqs.com
```
#### (Optional) Add user command
```bash
npm adduser --registry https://npm.osa.cubetiqs.com
```
# Publish your NPM package (Default Registry)
```bash
npm publish
```
# Publish your NPM package (Custom Registry)
```bash
npm publish --registry https://npm.osa.cubetiqs.com
```
# Unpublish your NPM package
```bash
npm unpublish
```