[英]bash: tslint: command not found
我嘗試使用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
我需要刪除 /node_modules 文件夾並運行 npm install 並再次修復
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.