Starting with version 1.0 of TypeScript, the Definition Manager has made some updates ( see here ), which included the rejection of the --ambient flag.
- Ambient use is now global
- This means that in
typings.json any ambientDependencies should be renamed globalDependencies , and any ambientDevDependencies should be renamed globalDevDependencies . - It also means that
--ambient now --global
Referring to the Quick Launch Example on the GitHub page, you need to explicitly specify the registry in which you install the type definition (s) so that Tipitsa knows where to look for it.
Example (Windows CLI)
Find the package by searching
typings search *name*
Then get the source code from the print results table on the command line (source column)
| NAME | SOURCE | HOMEPAGE | DESCRIPTION | VERSIONS | UPDATED | |-------------------------------------------------------------- | | | | | | | | | | | | | |
In this example, every package you want to install returns with a dt source. In my installation command, I now have to clearly specify the types in order to install each package from dt ( DefinitelyTyped ).
typings install --global --save dt~angular-protractor dt~jasmine dt~node dt~selenium-webdriver
source share