bash: tslint: 找不到命令
bash: tslint: command not found
我尝试使用 tslint --fix
但得到 bash: tslint: command not found...
.
我使用命令安装了 tslint:yarn global add tslint typescript
.
我的机器使用 Centos 7.
我最近 运行 遇到了同样的问题。 Yarn
输出说它添加了 "tslint"
二进制文件,但它在说谎。要实际安装它,您需要 运行 Yarn
作为 root,所以:
sudo yarn global add tslint typescript
我需要删除 /node_modules 文件夹和 运行 npm install,它又被修复了
我尝试使用 tslint --fix
但得到 bash: tslint: command not found...
.
我使用命令安装了 tslint:yarn global add tslint typescript
.
我的机器使用 Centos 7.
我最近 运行 遇到了同样的问题。 Yarn
输出说它添加了 "tslint"
二进制文件,但它在说谎。要实际安装它,您需要 运行 Yarn
作为 root,所以:
sudo yarn global add tslint typescript
我需要删除 /node_modules 文件夹和 运行 npm install,它又被修复了