簡體   English   中英

bash: tslint: 命令未找到

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM