LoginSignup
14
7

More than 3 years have passed since last update.

warning package.json: No license field

Posted at

はじめに

yarnやnpmでパッケージをaddしようとした時に題のような警告が出たので解決方法を記す。

解決方法

package.jsonの中にライセンスに関するパラメータを追加してあげる。OSSのように他人と共有しない場合は"UNLICENSED"だが、MITなどの場合は別の指定が必要。
具体的なパラメータ指定の詳細などはこちらを参考。

package.json
{
...
  "license": "UNLICENSED"
...
}

おわりに

こちらを参考。

14
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
7