What is causing this error - “Fatal error: Unable to find local grunt”

前端 未结 13 669
夕颜
夕颜 2020-11-27 09:21

I removed the old version of grunt first, then I installed the new grunt version, and then I got this error:

D:\\www\\grunt-test\\grunt grunt-cli: The

13条回答
  •  暖寄归人
    2020-11-27 09:34

    It says you don't have a local grunt so try:

    npm install grunt

    (without the -g it's a local grunt)

    Though not directly related, make sure you have Gruntfile.js in your current folder.

提交回复
热议问题