After setting up the latest versions of Visual Studio Code, Node.js, and Typescript on my Windows 10 system, I encountered an issue when trying to utilize TSLint in the terminal. A message appeared stating:
Failed to load the TSLint library for the document...
Efforts to resolve the problem by reinstalling TSLint resulted in the following error:
npm install -g tslint
The output indicated these warnings:
npm WARN [email protected] requires a peer of typescript@>=2.1.0 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of typescript@>=2.1.0 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev || >= 3.0.0-dev || >= 3.1.0-dev but none is installed. You must install peer dependencies yourself.
+ [email protected]
updated 1 package in 1.853s
Even after restarting Visual Studio Code, the TSLint loading error persisted.
- TSC 3.2.2
- VSC 1.29.1
I am seeking help on how to fix this issue and successfully use TSLint within Visual Studio Code.