我刚刚使用customer-api
将我的nodejs应用(npm publish
)发布到了工件。我在仓库级别中有一个.npmrc
。
cat .npmrc
_auth = ___
always-auth = true
email = Prayag.Upd@duwamish.com
我可以在人工UI中看到已发布的nodejs人工制品,以及*.tgz
文件。
现在我想在另一个我尝试过的项目依赖项中使用customer-api
"publishConfig": {
"registry": "https://code.duwamish.com/artifactory/api/npm/prayagupd-local-origin"
},
"dependencies": {
"customer-api": "0.10.1",
"ejs": "^1.0.0",
"express": "^4.16.1",
"formidable": "^1.0.17",
"immutable": "^3.8.2"
}
很显然,它是行不通的,因为我只设置了npm publish
而不是npm install
的{{3}}。
$ npm install
npm ERR! code E404
npm ERR! 404 Not Found: customer-api@0.10.1
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/prayagupd/.npm/_logs/2018-06-27T05_46_03_812Z-debug.log
我找不到任何有关从人工仓库中提取依赖项的文档-publishConfig
我可以设置npm回购以从package.json
内提取工件吗?