npm WARN ajv-keywords@3.1.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself. 那么先使用npm install -g npm-install-peers后再安装npm install webpack 就不会报错