我从以下位置使用了npm许可证检查器:https://www.npmjs.com/package/license-checker
custompath的license-format.json如下所示:
{
"name": "",
"version": false,
"description": "",
"licenses": false,
"copyright": "",
"licenseFile": false,
"licenseText": false,
"licenseModified": false,
"path": false
}
当我执行
npx license-checker --production --customPath license-format.json -json
我得到以下json对象:
...
"zone.js@0.10.3": {
"licenses": "MIT",
"repository": "https://github.com/angular/angular",
"publisher": "Brian Ford",
"name": "zone.js",
"description": "Zones for JavaScript",
"copyright": "Copyright (c) 2010-2020 Google LLC. http://angular.io/license"
}
...
虽然我删除了license-format.json中的版本,但是0.10.3版本仍然可以在包“区域”附近使用。js@0.10.3". 如何删除@后面的版本?
暂无答案!
目前还没有任何答案,快来回答吧!