bash: tslint: command not found
Asked Answered
E

2

14

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.

Epigraph answered 11/12, 2017 at 12:37 Comment(1)
what is output of yarn global add tslint typescript ?Printmaker
S
29

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
Septum answered 22/12, 2017 at 12:25 Comment(1)
Thanks for the answer it works please update the answer with source URL as well.Thanks palantir.github.io/tslint/usage/cliConventual
S
4

I needed to delete the /node_modules folder and run npm install and it was fixed again

Speakeasy answered 19/1, 2019 at 19:23 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.