我最近更新了我的package.json中的一些程序包,因为它们存在漏洞。所有漏洞都得到了修复,但是当我运行npm run时出现了以下错误:
“Copy Plugin package got updated during my vulnerability fix.”
我尝试从旧的提交中复制package.json并重新安装所有程序包,但是该漏洞再次出现。
ValidationError: Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
- options[0] misses the property 'patterns'. Should be:
[non-empty string | object { from, to?, context?, globOptions?, toType?, force?, flatten?, transform?, cacheTransform?, transformPath?, noErrorOnMissing? }, ...] (should not have fewer than 1 item)
- options[1] misses the property 'patterns'. Should be:
[non-empty string | object { from, to?, context?, globOptions?, toType?, force?, flatten?, transform?, cacheTransform?, transformPath?, noErrorOnMissing? }, ...] (should not have fewer than 1 item)