报错信息如下

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

解决步骤

先安装全局环境

npm install webpack@3.6.0 webpack-dev-server@2.2.0 -g

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

npm install webpack@3.6.0 webpack-dev-server@2.2.0 -D

相关文章:

  • 2021-11-13
  • 2020-03-14
猜你喜欢
  • 2021-08-07
  • 2021-07-25
  • 2019-08-18
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案