Home > Enterprise >  Why npm keep asking me for license information even though it set "UNLICENSED"?
Why npm keep asking me for license information even though it set "UNLICENSED"?

Time:06-11

I have already set the package.json with following code for my company private project.

{
  ...
  "license": "UNLICENSED",
  "private": true,
  ...
}

but npm seems not giving up asking me for the license.

yarn run v1.22.19
warning ../../../package.json: No license field

CodePudding user response:

Thanks comment from @jonrsharpe.

I found the package.json actually from different path, which is actually from ~/ path. For visual studio command, when I click the link it prompt, it actually jump to current path package.json file. That's why it confused me.

  • Related