vue启动的时候报错了requires a peer of webpack@^4.0.0 but none is installed.

npm install

npm WARN [email protected] requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.

 

audited 14682 packages in 8.843s

found 3 moderate severity vulnerabilities

  run `npm audit fix` to fix them, or `npm audit` for details

解决办法:npm install webpack@^4.0.0 -g

 

 

你可能感兴趣的:(vue启动的时候报错了requires a peer of webpack@^4.0.0 but none is installed.)