我正在尝试配置要使用的东西
Github Packages
对于私有组件。这工作得很好。但在我配置了搜索功能的目录中
github
之前
npmjs
,
npm search
似乎已经停止工作了。我试着搜索我的一个包裹,或者类似的东西
lodash
我得到这个错误:
npm search @hapi/joi
npm WARN search fast search endpoint errored. Using old search.
npm WARN Failed to read search cache. Rebuilding
npm WARN Building the local index for the first time, please be patient
npm WARN Search data request failed, search might be stale
npm ERR! No search sources available
即使没有
.npmrc
指向github包
.npmrc相当基础,
registry=https://npm.pkg.github.com/mycompany
这只是按设计工作,还是有配置允许我(理想地)搜索我的私有仓库和
npmjs
回购?我的用户
~/.npmrc
看起来像:
//npm.pkg.github.com/:_authToken=Xxxxxxxxxxxxxxxxxxxxxxx
//npmjs.org