ValidationError: Progress Plugin Invalid Options报错options should NOT have additional properties

报错:

$ npm run serve

> [email protected] 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/validateOptions.js:32:11)
    at new ProgressPlugin (/home/liang/PycharmProjects/devplatform/node_modules/webpack/lib/ProgressPlugin.js:62:3)
    at new Progress (/home/liang/PycharmProjects/devplatform/node_modules/progress-webpack-plugin/index.js:25:21)
    at new progressPlugin (/home/liang/PycharmProjects/devplatform/node_modules/progress-webpack-plugin/index.js:127:10)
    at /home/liang/PycharmProjects/devplatform/node_modules/webpack-chain/src/Plugin.js:14:18
    at Object.toConfig (/home/liang/PycharmProjects/devplatform/node_modules/webpack-chain/src/Plugin.js:78:22)
    at /home/liang/PycharmProjects/devplatform/node_modules/webpack-chain/src/Config.js:129:63
    at Array.map (<anonymous>)
    at module.exports.toConfig (/home/liang/PycharmProjects/devplatform/node_modules/webpack-chain/src/Config.js:129:40)
    at Service.resolveWebpackConfig (/home/liang/PycharmProjects/devplatform/node_modules/@vue/cli-service/lib/Service.js:277:34)
    at PluginAPI.resolveWebpackConfig (/home/liang/PycharmProjects/devplatform/node_modules/@vue/cli-service/lib/PluginAPI.js:132:25)
    at serve (/home/liang/PycharmProjects/devplatform/node_modules/@vue/cli-service/lib/commands/serve.js:73:31)
    at Service.run (/home/liang/PycharmProjects/devplatform/node_modules/@vue/cli-service/lib/Service.js: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

你可能感兴趣的:(前端,bug,npm,node.js,前端)