Edgaras Karka
Edgaras Karka

Reputation: 7852

bash: tslint: command not found

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.

Upvotes: 14

Views: 20803

Answers (2)

dang
dang

Reputation: 1588

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

Upvotes: 4

pevel
pevel

Reputation: 403

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

Upvotes: 29

Related Questions