Reputation: 5901
I have two problems:
typings search electron
returns quite a few results.How do I install them? typings install dt~github-electron --global --save
gives me an error:
Attempted to compile "github-electron" as an external module, but it looks like a global module. You'll need to enable the global option to continue.
Upvotes: 3
Views: 3111
Reputation: 452
For those who are using TypeScript version 2.0 + you can use npm to get that by executing following line
npm install --save @types/electron
Here is a quick reference from typescript documentation
http://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html
if you are using typescript version lower than 2 either you can use typing which other peoples already helped regard that
Upvotes: 3
Reputation: 3275
I had to use a different typing name :
typings install electron/github-electron --source dt --save --global
Upvotes: 1
Reputation: 31600
The source needs to be set to dt and it seems to work just fine.
$ typings install github-electron --source dt --global
Upvotes: 4