3

我正在尝试配置将Github 包用于私有组件的东西。这工作正常。但是在我github之前配置过搜索的目录中npmjsnpm 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 包的情况下,这在 dirs 中仍然可以正常工作

.npmrc 非常基本,

registry=https://npm.pkg.github.com/mycompany

这只是按设计工作,还是有配置可以让我搜索(理想情况下)我的私人回购和npmjs回购?我的用户~/.npmrc看起来像:

//npm.pkg.github.com/:_authToken=Xxxxxxxxxxxxxxxxxxxxxxx
//npmjs.org
4

0 回答 0