咕unt声返回错误。
当我检查列表中grunt的安装软件包时。
PS C:\Windows\system32> npm list -g --depth=0
C:\Users\user\AppData\Roaming\npm
+-- @vue/cli@3.5.1
+-- bower@1.8.8
+-- grunt@1.0.4
+-- grunt-cli@1.3.2
+-- npm@6.8.0
`-- typescript@3.3.3333
但是当我检查版本错误时,我不能使用任何frunt命令。
PS C:\Windows\system32> grunt --version
grunt : The term 'grunt' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ grunt --version
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (grunt:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
有人知道我该如何解决吗?