前前前世 2018-09-07 11:48 采纳率: 0%
浏览 826
已结题

npm奇葩问题,气死人不偿命

npm的自定义脚本别名"webpack":"webpack --config webpack.config.js --progress --display-modules --colors --display-reasons"

采用npm run webpack 运行后出现如下错,

原因是:--display-modules --colors --display-reasons 这三个参数 未能识别请看图一
报如下错误:
× 「webpack」: Flags were specified that were not recognized:

--display-modules Not sure what you mean there
--colors Not sure what you mean there
--display-reasons Not sure what you mean there

本人用了最low的方法测试,也找到了最low的解决方案,但我希望能得到一个最好的解决方案。

1,把三个参数去掉直接然后运行,打包成功,如图二

2,直接运行长脚本,打包成功,如图三。


    ![图一](https://img-ask.csdn.net/upload/201809/07/1536321374_578616.jpg)

    ![图二](https://img-ask.csdn.net/upload/201809/07/1536321394_825625.png)

    ![图三](https://img-ask.csdn.net/upload/201809/07/1536321417_422983.png)
  • 写回答

3条回答 默认 最新

  • 前前前世 2018-09-07 11:59
    关注

    csdn上传图片有问题....

    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器