NPM 网站 - 发布了一个新包但无法查看其页面? [英] NPM Website - published a new package but can't view its page?

查看:50
本文介绍了NPM 网站 - 发布了一个新包但无法查看其页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我今天发布了一个 NPM 包 (jhp-serve).我可以 npm install 它,npx 它,它出现在搜索结果中 (https://www.npmjs.com/search?q=jhp).但是不知何故,当我单击搜索结果中的链接以查看其页面时,我收到了 503 JSON 响应(甚至不是 HTML 页面),其中包含:

I published an NPM package today (jhp-serve). I can npm install it, npx it, and it appears in search results (https://www.npmjs.com/search?q=jhp). But somehow, when I click the link in the search results to view its page, I get a 503 JSON response (not even an HTML page) containing:

{"error":"Service Unavailable"}

为了方便起见,这里有一个链接:https://www.npmjs.com/package/jhp- 服务

Here's a link for convenience: https://www.npmjs.com/package/jhp-serve

这种方式已经持续了几个小时,所以我认为这不仅仅是等待存储库完全传播内容的问题.我很困惑.这是我做的,还是 NPM 的问题?这是我的 package.json:

It's been this way for hours now, so I don't think it's just a matter of waiting for the repository to fully propagate things. I'm baffled. Is this something I did, or is it NPM's problem? Here's my package.json:

{
  "bin": {
    "jhp-serve": "./index.js"
  },
  "name": "jhp-serve",
  "version": "1.0.2",
  "description": "JHP: Hypertext Preprocessor",
  "repository": {
    "type": "git",
    "url": "https://github.com/brundonsmith/jhp"
  },
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [
    "jhp",
    "php",
    "web",
    "website",
    "html",
    "server"
  ],
  "author": "Brandon Smith",
  "license": "ISC",
  "dependencies": {
    "express": "^4.17.1"
  }
}

推荐答案

更新:近 24 小时后自行解决.猜猜是在 NPM 的末尾.

Update: it resolved on its own after nearly 24 hours. Guess it was on NPM's end.

这篇关于NPM 网站 - 发布了一个新包但无法查看其页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆