mplessard
mplessard

Reputation: 21

npm install -g grunt-cli seems to work but then command not found

I have installed grunt using npm install -g grunt-cli, then it only write:


changed 56 packages in 4s

5 packages are looking for funding
  run `npm fund` for details

And when I try using grunt afterward grunt --version it says: bash: grunt: command not found

I have try adding it to my path manually, but there is no npm directory under C:\Users\{username}\AppData\Roaming

If I do npm ls -g then I get this output:

C:\Users\{username}\AppData\Local\Volta\tools\image\node\20.15.1
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

How do I fix this?

Upvotes: 0

Views: 48

Answers (1)

mplessard
mplessard

Reputation: 21

Actually I didn't succeed at running it globally, but I succeeded at running yarn run grunt [my command].

Upvotes: 0

Related Questions