Updated the npm guide

This commit is contained in:
Sambo Chea 2021-12-25 09:07:53 +07:00
parent bbb86a9ecf
commit 1b9ddc9ef8
Signed by: sombochea
GPG Key ID: 3C7CF22A05D95490

View File

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