Fields in 'package.json' for Private and Unlicensed Modules

If you not include the license field in package.json, npm will keep bugging you:

1
2
INFO: package.json
INFO: api@0.1.8 No license field.

If your module is private, just add the following two fields to package.json:

1
2
3
4
{
"license": "UNLICENSED",
"private": true
}

See NPM package.json license.