NPM - No license field
Add this to your package.json:
{
"license" : "MIT license"
}
If your software is opensource.
You can have some examples to use on: https://opensource.org/licenses
Add a license attribute in your package.json
file, e.g:
{
"name": "...."
...
"license" : "SEE LICENSE IN <filename>"
}
If you are working on an open source package with an OSI-approved license, use it's identifier from this list as value for the license
attribute.
Here is the specification of the package.json format: https://docs.npmjs.com/files/package.json