我的package.json
"repository": {
"type": "git",
"url": "git@bitbucket.org:BanksySan/cmd-line-args.git"
}
但是,npm注册表仍然将repo显示为GitHub。
如何更改此内容?
我尝试过重新发布和取消发布并重新发布,但仍然没有变化。
答案 0 :(得分:0)
npm info显示正确的存储库,所以我猜你只需要等待npmjs.com的缓存刷新。如果问题仍然存在,我建议您在此处打开一个问题:https://github.com/npm/newww/issues
$ npm info cmd-line-args
{ name: 'cmd-line-args',
description: 'Clean parsing of command line arguments',
'dist-tags': { latest: '0.0.4' },
versions: [ '0.0.1', '0.0.2', '0.0.4' ],
maintainers: 'banksysan <BanksySan+npm@googlemail.com>',
time:
{ modified: '2015-05-13T12:45:22.529Z',
created: '2015-05-12T22:12:34.157Z',
'0.0.1': '2015-05-12T22:12:34.157Z',
'0.0.2': '2015-05-12T22:51:45.909Z',
'0.0.3': '2015-05-12T23:32:48.275Z',
'0.0.4': '2015-05-13T12:45:22.529Z' },
keywords:
[ 'argv',
'command line',
'arguments',
'parser',
'config',
'environment' ],
repository:
{ type: 'git',
url: 'git@bitbucket.org:BanksySan/cmd-line-args.git' },
author: 'David Banks <BanksySan@googlemail.com>',
license: 'MIT',
readmeFilename: 'README.md',
version: '0.0.4',
files: [ 'index.js', 'verify.js' ],
dependencies: { underscore: '^1.8.3' },
devDependencies:
{ 'grunt-cli': '^0.1.13',
'grunt-contrib-jshint': '^0.11.0',
'grunt-contrib-nodeunit': '^0.4.1',
'grunt-contrib-watch': '^0.6.1',
'grunt-mocha-cli': '^1.12.0',
'jshint-stylish': '^1.0.1',
'load-grunt-tasks': '^3.1.0',
proxyquire: '^1.4.0',
should: '^6.0.1',
sinon: '^1.14.1',
'time-grunt': '^1.1.0' },
scripts: { test: 'grunt' },
main: 'index.js',
directories: { test: 'test' },
gitHead: 'd948c4efc6e7b9060372e813aae897179fe4ad0c',
dist:
{ shasum: '1b93d849ee5c85544ad2807cc0100de95535ca0b',
tarball: 'http://registry.npmjs.org/cmd-line-args/-/cmd-line-args-0.0.4.tgz' } }
答案 1 :(得分:0)
错误可能在这里(或者在&#34; github-url-to-object&#34;模块中):
https://github.com/npm/newww/blob/master/presenters/package.js#L82