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