安装 webpack-dev-server 失败

报错信息如下

npm ERR! code EINVALIDTAGNAME
npm ERR! Invalid tag name "–D": Tags may not have any characters that encodeURIComponent encodes.

解决步骤

先安装全局环境

npm install [email protected] [email protected] -g

在配置到package.json 开发环境中

npm install [email protected] [email protected] -D

猜你喜欢

转载自www.cnblogs.com/xujinglog/p/13371495.html