I am trying to use expressjs in my app.
After installing it using typings install express --ambient --save
, I run tsc
, but I get two errors:
typings/main/ambient/express/index.d.ts(17,34): error TS2307: Cannot find module 'serve-static'. typings/main/ambient/express/index.d.ts(18,27): error TS2307: Cannot find module 'express-serve-static-core'.
So, I tried to install both:
typings install serve-static --ambient --save
typings install express-serve-static --ambient --save
and then I run tsc again, but get one more error:
typings/main/ambient/serve-static/index.d.ts(79,24): error TS2307: Cannot find module 'mime'.
How can I solve these problems? How can I install all dependencies of express automatically?
@types/express
be the very same as the one forexpress
? – Kingfish