justin2018
V2EX  ›  Node.js

npm 发布的包找不到 npmjs.com 上搜索

  •  
  •   justin2018 · Jan 9, 2020 · 9276 views
  •   You need to sign in to view this topic
    This topic created in 2454 days ago, the information mentioned may be changed or developed.

    1.可以发布成功,个人后台有记录

    2.使用npm publish发布成功 npm 网站上搜索不到

    3.通过搜索,找到了另外一个方法npm publish --registry=https://registry.npmjs.org/ 发布成功,但是依旧搜索不到~


    ps:

    https://npm.taobao.org/package/package 可以搜索到

    个人使用 nrm 切换源 下载的时候使用的是淘宝源 发布的时候使用的是 npm 的源

    Supplement 1  ·  Jan 11, 2020
    截止到现在的时间 已经可以搜索出来了~~~ 喜极而泣 😁
    9 replies  •  2020-01-17 19:06:31 +08:00
    LWXYFER
        1
    LWXYFER  
       Jan 9, 2020
    fannheyward
        2
    fannheyward  
       Jan 9, 2020
    好像是 npmjs registry 的问题,这几天发的同样遇到搜索不到的问题。
    maichael
        3
    maichael  
       Jan 9, 2020
    npmjs 貌似更新的会慢一点,你可能要等多几个钟。
    mhtt
        4
    mhtt  
       Jan 9, 2020
    我做过实验,如果你用的是非官方源,即便用 `npm publish --registry=https://registry.npmjs.org/`,好像在官方都无法操作,搜索,更新。换成官方源,一切没问题。
    mikoshu
        5
    mikoshu  
       Jan 9, 2020
    昨天同遇到这个问题 东西是发布上去了 在个人主页也可以进入具体项目 但是搜索就是死活搜索不出来 各种关键字甚至全名都不行.. 不过我也用的 nrm 不懂会不会是 4 楼说的问题 回去换个原 npm 试试
    justin2018
        6
    justin2018  
    OP
       Jan 9, 2020
    @mikoshu 到现在还是没搜索到 我用的是 npm 的源 下次把代码放到 vps 上看看 囧~
    justin2018
        7
    justin2018  
    OP
       Jan 10, 2020
    @mikoshu 老铁 你这个问题解决了么 ~
    mikoshu
        8
    mikoshu  
       Jan 17, 2020
    @justin2018 解决了呀 你 nrm 切换到 npm 源 不要用 npm publish 用 nrm publish 就好了
    justin2018
        9
    justin2018  
    OP
       Jan 17, 2020
    @mikoshu 多谢回复

    我啥都没动 就可以搜索到了 只不过就是得等好长时间

    下次按照老铁的方法试一试 😁
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4440 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 09:52 · PVG 17:52 · LAX 02:52 · JFK 05:52
    ♥ Do have faith in what you're doing.