Gruntjs 无法在Windows 8上使用grunt

Gruntjs 无法在Windows 8上使用grunt,gruntjs,Gruntjs,我试图在我的新Windows8机器上使用grunt,但它不工作。问题出在这里 c:\Users\User\Documents\Source\Project>npm install -g grunt grunt@0.4.5 C:\Users\User\AppData\Roaming\npm\node_modules\grunt ├── dateformat@1.0.2-1.2.3 ├── eventemitter2@0.4.14 ├── which@1.0.5 ├── getobject@0

我试图在我的新Windows8机器上使用grunt,但它不工作。问题出在这里

c:\Users\User\Documents\Source\Project>npm install -g grunt
grunt@0.4.5 C:\Users\User\AppData\Roaming\npm\node_modules\grunt
├── dateformat@1.0.2-1.2.3
├── eventemitter2@0.4.14
├── which@1.0.5
├── getobject@0.1.0
├── colors@0.6.2
├── rimraf@2.2.8
├── async@0.1.22
├── hooker@0.2.3
├── grunt-legacy-util@0.2.0
├── exit@0.1.2
├── lodash@0.9.2
├── coffee-script@1.3.3
├── underscore.string@2.2.1
├── iconv-lite@0.2.11
├── grunt-legacy-log@0.1.1 (underscore.string@2.3.3, lodash@2.4.1)
├── nopt@1.0.10 (abbrev@1.0.5)
├── glob@3.1.21 (inherits@1.0.0, graceful-fs@1.2.3)
├── minimatch@0.2.14 (sigmund@1.0.0, lru-cache@2.5.0)
├── findup-sync@0.1.3 (lodash@2.4.1, glob@3.2.11)
└── js-yaml@2.0.5 (esprima@1.0.4, argparse@0.1.15)

c:\Users\User\Documents\Source\Project>grunt
'grunt' is not recognized as an internal or external command,
operable program or batch file.

我正在尝试查找grunt.cmd,但在我的系统中找不到它。其他人也面临此问题吗?

尝试安装grunt cli,看看这是否解决了您的问题:

npm install -g grunt-cli
可能重复的