0

I am trying to install Grunt v1.0.0 in Ubuntu using this command

sudo npm -g install grunt

or

sudo npm -g install [email protected]

in both cases, I am getting

/usr/local/bin/grunt ->/usr/local/lib/node_modules/grunt/bin/grunt/usr/local/lib`-- [email protected] 

I have installed Node.js version : 4.2 and Npm.

output of npm list -g

    /usr/local/lib
`-- [email protected]
  +-- [email protected]
  | `-- [email protected]
  |   +-- [email protected]
  |   | `-- [email protected]
  |   +-- [email protected]
  |   +-- [email protected]
  |   | `-- [email protected]
  |   |   +-- [email protected]
  |   |   `-- [email protected]
  |   +-- [email protected]
  |   `-- [email protected]
  +-- [email protected]
  +-- [email protected]
  | `-- [email protected]
  `-- [email protected]

When I am hitting terminal with user@super:~$grunt

I am getting command not found response.

what wrong I am doing?

Thanks

Prakash P
  • 309
  • 5
  • 18

1 Answers1

2

It looks like you installed Grunt globally via NPM, but did not install Grunt CLI, which puts the 'grunt' command in your system path. Try this:

npm install -g grunt-cli

See the documentation here: https://gruntjs.com/getting-started#installing-the-cli