我正在尝试安装一些 Grunt 插件,例如 grunt-contrib-clean
和 grunt-contrib-watch
使用 npm install grunt-contrib-clean --save-dev
和 npm install grunt-contrib-watch --save-dev
我收到了这些警告:
npm WARN stellarhse@1.0.0 requires a peer of grunt@~0.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN grunt-contrib-concat@0.3.0 requires a peer of grunt@~0.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN grunt-contrib-cssmin@0.10.0 requires a peer of grunt@~0.4.1 but none is installed. You must install peer dependencies yourself.
我该如何修复它们?
谢谢。
最佳答案
大多数情况下你没有在本地安装 grunt
尝试通过运行此命令在本地安装 grunt
npm install grunt --save-dev
关于javascript - 如何修复在安装 grunt 插件时需要 grunt@~0.4.0 的同伴?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53480628/