Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

typings always complaining about global module

I am very new to typescript. Whatever typings I try to install, I get:

typings ERR! message Attempted to compile "angular" as an external module, but it looks like a global module.

I am just trying to do

typings install dt~angular

What am I doing wrong?

Update: If you are coming here with little knowledge (as I was when writing this question) - consider using npm/@types. More info and discussion.

like image 616
ironic Avatar asked May 21 '16 00:05

ironic


1 Answers

As error message suggests, you should use --global option:

typings install dt~angular --global --save

See detailed step-by-step tutorial for setting up Node.js project with TypeScript support in IntelliJ IDEA / Webstorm or Visual Studio Code

TypeScript and tools around it are evolving very fast. What worked yesterday don't work any more.

like image 135
Andrey Chausenko Avatar answered Sep 19 '22 11:09

Andrey Chausenko