繁体   English   中英

bash: tslint: 命令未找到

[英]bash: tslint: command not found

我尝试使用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

我需要删除 /node_modules 文件夹并运行 npm install 并再次修复

暂无
暂无

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

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