npm WARN deprecated lodash@2.4.2: lodash@<3.0.0 is no longer maintained

后端 未结 2 1057
南方客
南方客 2021-01-07 18:53

I\'m getting an error when using npm to install grunt-cli globally. It\'s related to lodash:

npm WARN deprecated lodash@2.4.2:
lodash@<3.0.0 is no longer          


        
相关标签:
2条回答
  • 2021-01-07 19:24

    You can try running this command in your console:

    npm i -g lodash
    

    Let me know if this fixes it.

    0 讨论(0)
  • 2021-01-07 19:31

    The packagegrunt-cli relies on a older version of lodash. It shouldn't affect the functionality of grunt; it's just a warning message.

    So, you're doing nothing wrong, it's not an error message, just a warning, and the way you've installed grunt-cli should work fine.

    0 讨论(0)
提交回复
热议问题