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.
tslint accepts the following command-line options: -c, --config: The location of the configuration file that tslint will use to determine which rules are activated and what options to provide to the rules. If no option is specified, the config file named tslint. json is used, so long as it exists in the path.
To solve the error "tsc: command not found", install the typescript package globally by running npm install typescript@latest -g or use the npx command with the --package flag, e.g. npx --package typescript tsc --init . The fastest way to solve the error is to use the npx command with the --package flag.
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
I needed to delete the /node_modules folder and run npm install and it was fixed again
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With