NPM - How to fix "No readme data"

Npm

Npm Problem Overview


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": ""
  }
}

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

"npm WARN package.json [email protected] No readme data."

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

Npm Solutions


Solution 1 - 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.

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

Solution 2 - Npm

Just set as private ;)

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

Solution 3 - Npm

Adding a README.md to your project root is the answer, but I've noticed that it takes a short while for NPM to pick up on this. Maybe a few minutes?

Solution 4 - Npm

Add to package.json "readme": "README.md"

Solution 5 - Npm

As of today, Apr 2017, just setting below in package.json, still works fine:

"private": true

this means its your private repository

even, with latest npm, it works fine:

npm update -g npm
> 3.10.8

Solution 6 - Npm

my solution
  • npm show
  • npm dist-tag add

1.use npm show check the remote website deploy info.

eg.should like this:

SOME_PACKAGEs@0.3.60-beta | Proprietary | deps: 14 | versions: 289
<span style="color:red;">最新日志倒序在这里增加,注明作者+日期+功能</span>

dist
.tarball: https://registry.npmjs.org/xxx/-/xxx-0.3.60-beta.tgz
.shasum: 021e30640a62f13905b1e2b7a4facd169df46a1d
.integrity: sha512-9N4pUwwoYGNek34fCCCjURuQdx1K5VBlCWl4t1sy8wi3xul/N/TiDvjmUBF24t2Dg2fX6cFM9on+tftnVaEr7A==
.unpackedSize: 114.5 kB

dependencies:
@hanyk/rc-viewer: ^0.0.3        crypto-js: ^3.1.9-1             moment: ^2.25.3                 react-dom: ^16.12.0             uuid: ^3.3.3                    
axios: ^0.19.0                  dirty-json-ie11: ^0.0.2         query-string: ^6.9.0            react-quill: ^1.3.3             yqquill-image-drop-module: ^0.0 
cookie-universal: ^2.0.16       md5: ^2.2.1                     quill-delta-to-html: ^0.11.0    react-resizable: ^1.10.1        

maintainers:
- jyjin <jyjin@qq.com>
- jyjin1 <jyjin1@163.com>
- jyjin2 <jyjin2@163.com>

dist-tags:
beta: 0.3.61-beta    latest: 0.3.53-beta  

published 26 minutes ago by jyjin1 <jyjin1@163.com>
2.npm dist-tag add [PACKAGE_NAME]@[VERSION]

and then update lasest 0.3.53-beta to 0.3.61-beta

npm dist-tag add [email protected]

3.npm show check agin

same to step 1

go back to your npm package site, all have refreshed!


Wish to helps, thanks~

[One Chinese Teach]希望对您有帮助,谢谢~

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestioniancrowtherView Question on Stackoverflow
Solution 1 - NpmgustavohenkeView Answer on Stackoverflow
Solution 2 - NpmKlayton FariaView Answer on Stackoverflow
Solution 3 - NpmRichard HunterView Answer on Stackoverflow
Solution 4 - NpmСергей СыркинView Answer on Stackoverflow
Solution 5 - NpmManohar Reddy PoreddyView Answer on Stackoverflow
Solution 6 - NpmjyjinView Answer on Stackoverflow