NPM 2.11.3
I'm building a library in Node. This library is only for use by the company I am currently working for. I think this means that the license is "None". But when I npm init
it wants me to use an SPDX License. "None" or "Unlicensed" are not valid options.
npm WARN package.json [email protected] license should be a valid SPDX license expression
There is some discussion around this on the NPM GitHub issue tracker but I can't find anything that definitively answers this. Perhaps NPM doesn't support this concept, but that seems odd.
What should I put for this field in this case? I'd like to get rid of the npm warnings related to this.
While the docs say that UNLICENSED is valid, it still gives a warning:
$ cat package.json | grep licen
"license": "UNLICENSED",
$ npm install
npm WARN package.json [email protected] license should be a valid SPDX license expression
SEE LICENSE IN LICENSE.txt
, which you set as `Copyright 20xx by xxx. All rights reserved. No license granted.'