Search code examples
typescriptpackage-managersangulartsd

Error thrown when trying to get DefinitelyTyped's tsd to install angular2 definition


I am getting the error below when I run tsd install angular2 from the Package Manager Console in Visual Studio 2015.

I have installed other definitions like "require" successfully so it's not tsd itself or some network issue.

Is it because angular2 is in alpha and I need to configure something for tsd to get it? (Angular.io's 5 min quickstart didn't say anything about this.)

PM> tsd install angular2
tsd : stream.js:94
At line:1 char:1
+ tsd install angular2
+ ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (stream.js:94:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

      throw er; // Unhandled stream error in pipe.
            ^
Error: read ECONNRESET
    at exports._errnoException (util.js:746:11)
    at TCP.onread (net.js:559:26)

Solution

  • Since it worked when I just tested it I recommend updating tsd:

    npm update tsd -g