Grunt on Windows 8: 'grunt' is not recognized

前端 未结 11 1993
刺人心
刺人心 2020-11-29 01:07

I\'m having a problem running Grunt from the command line on my Windows 8 machine.

My research indicates the most common solution is to install grunt-cli, since Gru

11条回答
  •  执念已碎
    2020-11-29 01:36

    Same happened to me and here was the solution: Have you got 2 different versions of Node.JS installed? Maybe Nodist? This means you likely got NPM installed twice which will install the commands into 2 different folders: Once into C:\Users\\AppData\Roaming\npm and once into C:\dev\nodist\bin\bin.

    C:\dev\nodist\bin\bin wasn't on my path variable so I added it, and I removed the Node.JS version I didn't want to use.

提交回复
热议问题