javascript - 庆典 : tslint: command not found

标签 javascript typescript tslint

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

相关文章:

html - 如何使用 Angular 6 向表格添加附加功能

ionic2 - 如何自定义在 ionic app-scripts 构建期间运行的步骤?

angular - 将枚举与方法合并

angular - ionic 谷歌地图电容器

javascript - 如何从 tslint 中排除文件夹?

javascript - Highmaps 最小/最大颜色未按预期工作

javascript - 如何打印 html 代码以便我只写一次?

Javascript - 在递归函数中获取setTimeout的返回值

javascript - angularjs - 带搜索参数的路由

javascript - 带箭头函数的 SetTimeout 递归