我尝试使用 tslint --fix
但得到 bash: tslint: command not found...
。
我使用命令安装了 tslint:yarn global add tslint typescript
。
我的机器使用 Centos 7。
最佳答案
我最近遇到了同样的问题。 Yarn
输出说它添加了 "tslint"
二进制文件,但它在说谎。要实际安装它,您需要以 root 身份运行 Yarn
,因此:
sudo yarn global add tslint typescript
关于javascript - 庆典 : tslint: command not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47753144/