According to the new npm specification you can use { "license": "UNLICENSED"}
if you do not wish to grant others the right to use a private or unpublished package under any terms.
Please refer the full details here
So you might not get the error you mentioned.