0

I've installed nodejs, and have used npm to install grunt using npm install grunt

When I try to run grunt, I am presented with what appears to be instructions on running node commands: (see image)

the same applies when trying to run gulp

I have done the same steps on other computers, and had no problem running grunt previously enter image description hereenter image description here

Please suggest ideas as to what's going on. Thanks

Simon H
  • 508
  • 1
  • 5
  • 18
  • Looks like you have a different application called `node` on your system path that's getting run instead of Node.js. Also, if you want to run grunt from the command line like that, you need to install it globally: `npm install grunt -g` – Joe Clay Mar 02 '17 at 12:29
  • ah... http://stackoverflow.com/questions/29579401/nodejs-seems-to-be-not-working-npm-do-work-however – Simon H Mar 02 '17 at 13:03

1 Answers1

0

As suggested by Joe Clay, the problem was that there was another app called node.exe whose pathwas in PATH variable before nodejs.

see also:

Nodejs seems to be not working; npm do work, however

Community
  • 1
  • 1
Simon H
  • 508
  • 1
  • 5
  • 18