Writing an Angular 2 app in TypeScript, I'm trying to follow the 5 Min Quickstart guide. Recently the npm typings
package went from 0.x to 1.x. According to the official instructions, we are supposed to delete /typings
when upgrading so that's what I did. After deleting that directory, I ran npm uninstall typings
, then npm install typings
. I now have typings 1.1.0
installed.
Here is my typings.json
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
"jasmine": "registry:dt/jasmine#2.2.0+20160505161446",
"node": "registry:dt/node#4.0.0+20160509154515"
}
}
Problem is, I expected the installation to create a new /typings
and fill it with the new file structure. However, I still have no /typings
. Trying to run typings install
throws the error 'typings' is not a recognized command, program or batch file
(I'm on Windows 7). What gives?
Why it's a problem: The typescript compiler throws a lot of "Cannot find name 'Promise'" (or 'Set' or 'Map')
errors unless I reference the (now deleted) ///<reference path="../typings/main/ambient/es6-shim/es6-shim.d.ts"/>