grunt: command not found when running from terminal

后端 未结 6 1747
礼貌的吻别
礼貌的吻别 2020-12-23 08:58

I\'m new to Grunt. I\'m trying to configure Grunt on my Mac OSX Lion.

I followed the instructions here and then created a project folder that contains the files bel

6条回答
  •  我在风中等你
    2020-12-23 09:34

    I have been hunting around trying to solve this one for a while and none of the suggested updates to bash seemed to be working. What I discovered was that some point my npm root was modified such that it was pointing to a Users/USER_NAME/.node/node_modules while the actual installation of npm was living at /usr/local/lib/node_modules. You can check this by running npm root and npm root -g (for the global installation). To correct the path you can call npm config set prefix /usr/local.

提交回复
热议问题