Hello,
I have installed on my Windows 7 computer typescript version 2.3.1 in my user folder
"C:UsersmateiaAppDataRoamingnpmnode_modulestypescript"
When I run npm install -g tslint
I get the warnings below:
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 but none was installed.
npm WARN [email protected] requires a peer of typescript@>=2.0.0 || >=2.0.0-dev || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >= 2.4.0-dev but none was installed.
// code snippet
with tslint.json
configuration:
Could you please clarify how to eliminate the warning ?
I have installed on my Windows 7 computer typescript version 2.3.1 in my user folder
"C:UsersmateiaAppDataRoamingnpmnode_modulestypescript"
I don't know what this means. Is that where npm put globally installed modules?
Did you run npm install -g typescript
?
Yes, I have first installed typescript by using npm install -g typescript
Then I tried to install tslint and got the warnings above.
But, thank you, I solved the problem, here is what I did.
npm uninstall -g typescript
npm install -g tslint typescript
Thank you ;)
Most helpful comment
Yes, I have first installed typescript by using npm install -g typescript
Then I tried to install tslint and got the warnings above.
But, thank you, I solved the problem, here is what I did.
npm uninstall -g typescript
npm install -g tslint typescript