npm-registry-guide/README.md

44 lines
746 B
Markdown
Raw Permalink Normal View History

2021-12-25 09:07:53 +07:00
# Config Proxy for Yarn (READ)
2021-07-29 11:11:04 +07:00
```bash
yarn config set registry https://r.ctdn.net
```
2021-12-25 09:07:53 +07:00
# Config Proxy for NPM (READ)
2021-07-29 11:11:04 +07:00
```bash
npm config set registry https://r.ctdn.net
```
2020-05-05 11:34:57 +07:00
# Config/Set NPM Registry
```bash
2021-12-25 09:07:53 +07:00
npm config set registry https://npm.cubetiqs.com
2020-05-05 11:34:57 +07:00
```
# Config/Set NPM Scope For Private
```bash
npm config set scope @cubetiq
```
# Login/Registry to NPM Registry
```bash
2021-12-25 09:07:53 +07:00
npm login https://npm.cubetiqs.com
2020-05-05 11:34:57 +07:00
```
#### (Optional) Add user command
```bash
2021-12-25 09:07:53 +07:00
npm adduser --registry https://npm.cubetiqs.com
2020-05-05 11:34:57 +07:00
```
# Publish your NPM package (Default Registry)
```bash
npm publish
```
# Publish your NPM package (Custom Registry)
```bash
2021-12-25 09:07:53 +07:00
npm publish --registry https://npm.cubetiqs.com
2020-05-05 11:34:57 +07:00
```
# Unpublish your NPM package
```bash
npm unpublish
```