标签:desktop 开发 安装 报错 兼容 dev 因此 type webp
webpack serve
命令,只需要安装webpack-dev-server就可以直接启用了。Usage: webpack s | serve
Description: Run the webpack Dev Server
此时,npx webpack-dev-server
命令会报错,因此它只兼容Webpack4,不过Webpack5可以使用它:
Cannot find module ‘webpack-cli/bin/config-yargs‘
Require stack:
- C:\Users\ly\Desktop\TypeScript\node_modules\webpack-dev-server\bin\webpack-dev-server.js
标签:desktop 开发 安装 报错 兼容 dev 因此 type webp
原文地址:https://www.cnblogs.com/develon/p/13852019.html