英文:
How can I get npmjs.com to show my README.md file?
问题
The npm网站上显示的我的包的页面显示以下消息:
> 这个包没有 README。请为您的包添加一个 README,以便用户知道如何入门。
但是包中确实存在一个 README.md
。
我的代码在 npm 网站上有一个 README.md
,因此 npm 错误地报告了这条消息。
如何让 npmjs.com 显示我的 README.md
文件?
英文:
The npm website for my package is showing the following message:
> This package does not have a README. Add a README to your package so that users know how to get started.
But a README.md does exist in the package.
My code has a README.md
as shown on the npm website, so npm is reporting the message incorrectly.
How can I get npmjs.com to show my README.md file?
答案1
得分: 1
这似乎是一个缓存问题。文件列表(显示README.md
存在)和包的首页(显示关于README.md
缺失的错误)似乎以不同的速度更新。缓存在24小时内更新。
关于npm.js错误显示此警告的问题,有一个关于GitHub的开放问题(https://github.com/npm/cli/issues/3904)。
英文:
This appears to be a caching issue. The file listing (which shows README.md
existing) and the front page for the package (which shows the error about README.md
missing) seem to update at different speeds. The cache updated within 24 hours.
There is an open GitHob issue about npm.js incorrectly showing this warning.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论