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

前端 未结 13 686
夕颜
夕颜 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:32

    None of the above worked for me because i had grunt installed globally (recommended in several of these answers, oddly) and that was messing everything up. Here's what did work:

    npm uninstall -g grunt
    npm install
    

    Only now was a local grunt installed, and useable, for me.

提交回复
热议问题