I tried use tslint --fix
but get bash: tslint: command not found...
.
I installed tslint using command: yarn global add tslint typescript
.
My machine use Centos 7.
I've run into the same problem recently. Yarn
output says it added "tslint"
binary, but it's lying. To actually install it you need to run Yarn
as root, so:
sudo yarn global add tslint typescript
我需要删除 /node_modules 文件夹并运行 npm install 并再次修复
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.