📌  相关文章
📜  npm WARN package.json:没有存储库字段 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:07.956000             🧑  作者: Mango

代码示例1
It's just a check as of NPM v1.2.20, they report this as a warning.

However, don't worry, there are sooooooo many packages which still don't have the repository field in their package.json. The field is used for informational purposes.

In the case you're a package author, put the repository in your package.json, like this:

"repository": {
  "type": "git",
  "url": "git://github.com/username/repository.git"
}