我已经在mac os上全局安装了dredd,但调用dredd时返回的命令找不到
➜ test git:(master) dredd
zsh: command not found: dredd不确定这个文件是否保存在正确的位置,或者我遗漏了一个额外的步骤。
我的初始安装是:
➜ test git:(master) npm install -g dredd
npm WARN deprecated coffee-script@1.12.6: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
/Users/bob/.npm-packages/bin/dredd -> /Users/bob/.npm-packages/lib/node_modules/dredd/bin/dredd
+ dredd@4.8.2
updated 1 package in 5.563s发布于 2018-08-09 13:22:46
尝试使用以下命令运行
./node_modules/.bin/dredd并确保与./dredd.yml中一样存在dredd.yml
https://stackoverflow.com/questions/47776942
复制相似问题