简体   繁体   English

安装grunt和grunt cli后找不到grunt命令

[英]grunt command not found after installed grunt and grunt cli

I installed grunt and grunt cli, but still I got command not found error 我安装了grunt和grunt cli,但是仍然出现命令未找到错误

{
  "name": "angulartdd",
  "version": "1.0.0",
  "description": "1",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "grunt-cli": "^1.2.0",
    "grunt-karma": "^2.0.0",
    "jasmine": "^2.5.2",
    "karma": "^1.3.0",
    "karma-jasmine": "^1.1.0"
  }
}

I can try to install grunt globally but I want to know why this isn't working. 我可以尝试在全球范围内安装grunt,但我想知道为什么这不起作用。

我在全球范围内安装了grunt,并且有效。

npm install -g grunt

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM