elasticsearch-head-master下运行npm install报npm WARN [email protected] license should be a valid SPDX license expression

2个月没有启动es和es配套服务,今天运行时,发现如下问题:

运行npm install

出现npm WARN [email protected] license should be a valid SPDX license expression

elasticsearch-head-master下运行npm install报npm WARN elasticsearch-head@0.0.0 license should be a valid SPDX license expression_第1张图片

 

 spdx license是个什么?官网: https://spdx.org/licenses/

spdx license是一个开源软件或者其他合作类软件的一个使用声明

解决问题:

打卡elasticsearch-head-master下的package.json

elasticsearch-head-master下运行npm install报npm WARN elasticsearch-head@0.0.0 license should be a valid SPDX license expression_第2张图片

 

 修改license为Apache-2.0

elasticsearch-head-master下运行npm install报npm WARN elasticsearch-head@0.0.0 license should be a valid SPDX license expression_第3张图片

 

 保存后重新运行npm install

 

 问题解决~

 

license问题解决参考博客:

https://www.cnblogs.com/shengulong/p/6224908.html

你可能感兴趣的:(elasticsearch-head-master下运行npm install报npm WARN [email protected] license should be a valid SPDX license expression)