After globally installing Moment typing with the command
typings install dt~moment --save --global
Checking the installed typings using typings list
shows:
├── <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="93fffcf7f2e0fbd3a7bda3bda3">[email protected]</a>
├── es6-shim (global)
└── moment (global)
Deciding to uninstall it globally with
typings uninstall moment --global
Another check of the typings list displays:
├── <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="630f0c0702100b23574d534d53">[email protected]</a>
└── es6-shim (global)
Trying to install in the current directory using typings install dt~moment --save
results in an error message:
typings ERR! message Attempted to compile "moment" as an external module, but it looks like a global module. You'll need to enable the global option to continue.
Frustrated by this issue, I also attempted to clear the cache without success.
node v5
npm v3.3.9
tsc v1.8.10