I'm trying to install a module named "request" https://github.com/request/request
in my angular 2 typescript project but I can't get it imported for some reason.
I tried installing the normal way with npm install --save request and I tried typings install request --ambient --save aswell although I don't know what exactly that does anyway.
I'm working off of this boilerplate https://github.com/mgechev/angular2-seed which in the wiki suggests that install modules is as easy as using npm install and then
import * as jwt from 'angular2-jwt/angular2-jwt';
But I can't import my request module for some Reason.
This is my import line
import * as request from 'request';
Do I need to reference the module elsewhere somehow?
typings
is for definition files. Did you try installing it usingnpm install request
? – Mike Cluck