NPM - 如何修复“没有自述数据" [英] NPM - How to fix "No readme data"

查看:24
本文介绍了NPM - 如何修复“没有自述数据"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的 package.json:

I have a simple package.json:

{
  "name": "camapaign",
  "version": "0.0.1",
  "scripts": {
    "start": "node app.js"
  },
  "engines": {
    "node": "0.10.15",
    "npm": "1.3.5"
  },
  "repository": { 
    "type": "svn",
    "url": ""
  }
}

当我执行npm install"时,我收到以下警告,我想修复:

When I execute "npm install" i get the following warning which I would like to fix:

"npm WARN package.json camapaign@0.0.1 No readme data."

我尝试添加README.md"&readme.txt"到与包相同的目录,但没有任何乐趣.我错过了什么?

I have tried adding "README.md" & "readme.txt" to the same dir as the package but with no joy. What am I missing?

推荐答案

仅仅添加一个 README.md 文件并不能解决它,你应该在里面写点东西;至少项目标题和简短描述对人有好处!但是对于 NPM 来说,一个字节可能就足够了...
这样做应该会停止显示警告.

Simply adding a README.md file will not fix it, you should write something inside it; at least the project title and a brief description is good for people! But for NPM, one byte may be enough...
Doing so should stop showing the warnings.

此外,当您阅读该警告时,请确保问题与第 3 方软件包无关.

Also, when you read that warning, ensure that the problem is not related to a 3rd party package.

这篇关于NPM - 如何修复“没有自述数据"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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