JavaScript SDK 发布

 

Here’s the table of contents:

  1. 私有仓库发布
    1. 配置Home-User目录下的.npmrc文件一
    2. 配置Home-User目录下的.npmrc文件二
  2. 打包
  3. 上传

私有仓库发布

配置Home-User目录下的.npmrc文件一

registry=http://10.0.0.01:8081/repository/npm-internal/
//10.0.27.61:8081/repository/npm-internal/:username=username
//10.0.27.61:8081/repository/npm-internal/:_password=ODhwbmF5THVzd05HQlNmTkp6aDc=  # 原始密码转为Base64
//10.0.27.61:8081/repository/npm-internal/:email=user@email.com
cache=D:\software\nodejs\node_cache
prefix=D:\software\nodejs\node_global
strict-ssl=false

配置Home-User目录下的.npmrc文件二

registry=https://registry.npmjs.org/
always-auth=true
//registry.npmjs.org/:_authToken=<***>

打包

npm install
npm build

上传

npm publish