12

我可以访问 github 包注册表测试版,只是摆弄它并按照配置步骤进行发布。

问题是,我正确地发布了它,但注意到它没有发布到 npm。有没有办法使用相同的命令在两个注册表中发布?在两个注册表中发布包是否有意义?


另外,我的包名称package.json@alvarocastro/quicksort如文档中所述)和github页面中的名称最终是这样,但是在要安装的命令示例中,范围是重复的,例如:@alvarocastro/@alvarocastro/quicksort


这是完整的package.json文件作为参考:

{
  "name": "@alvarocastro/quicksort",
  "version": "1.0.1",
  "description": "An implementation of the quicksort algorithm",
  "main": "index.js",
  "scripts": {
    "performance": "node performance.js",
    "test": "xo && nyc ava",
    "coverage": "nyc report --reporter=text-lcov | coveralls"
  },
  "publishConfig": {
    "registry":"https://npm.pkg.github.com/@alvarocastro"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/alvarocastro/quicksort.git"
  },
  "keywords": [
    "quicksort",
    "sort",
    "algorithm"
  ],
  "author": "Alvaro Castro",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/alvarocastro/quicksort/issues"
  },
  "homepage": "https://github.com/alvarocastro/quicksort#readme",
  "devDependencies": {
    "ava": "2.3.0",
    "coveralls": "3.0.6",
    "nyc": "14.1.1",
    "xo": "0.24.0"
  }
}
4

0 回答 0