报错:
$ npm run serve
> vue-antd-pro@3.0.2 serve
> vue-cli-service serve
INFO Starting development server...
ERROR ValidationError: Progress Plugin Invalid Options
options should NOT have additional properties
options should NOT have additional properties
options should NOT have additional properties
options should pass "instanceof" keyword validation
options should match exactly one schema in oneOf
ValidationError: Progress Plugin Invalid Options
options should NOT have additional properties
options should NOT have additional properties
options should NOT have additional properties
options should pass "instanceof" keyword validation
options should match exactly one schema in oneOf
at validateOptions (/home/liang/PycharmProjects/devplatform/node_modules/webpack/node_modules/schema-utils/src/:32:11)
at new ProgressPlugin (/home/liang/PycharmProjects/devplatform/node_modules/webpack/lib/:62:3)
at new Progress (/home/liang/PycharmProjects/devplatform/node_modules/progress-webpack-plugin/:25:21)
at new progressPlugin (/home/liang/PycharmProjects/devplatform/node_modules/progress-webpack-plugin/:127:10)
at /home/liang/PycharmProjects/devplatform/node_modules/webpack-chain/src/:14:18
at (/home/liang/PycharmProjects/devplatform/node_modules/webpack-chain/src/:78:22)
at /home/liang/PycharmProjects/devplatform/node_modules/webpack-chain/src/:129:63
at (<anonymous>)
at (/home/liang/PycharmProjects/devplatform/node_modules/webpack-chain/src/:129:40)
at (/home/liang/PycharmProjects/devplatform/node_modules/@vue/cli-service/lib/:277:34)
at (/home/liang/PycharmProjects/devplatform/node_modules/@vue/cli-service/lib/:132:25)
at serve (/home/liang/PycharmProjects/devplatform/node_modules/@vue/cli-service/lib/commands/:73:31)
at (/home/liang/PycharmProjects/devplatform/node_modules/@vue/cli-service/lib/:262:12)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
因为:
$ npm install
安装时提示:
To address issues that do not require attention, run:
npm audit fix
To address all issues possible (including breaking changes), run:
npm audit fix --force
Some issues need review, and may require choosing
a different dependency.
Run `npm audit` for details.
我运行了
$ npm audit fix --force
解决办法
重新clone项目,不运行npm audit fix --force