I'm currently incorporating expressjs into my application.
Following its installation using
typings install express --ambient --save
, I run tsc
. However, two errors are returned:
typings/main/ambient/express/index.d.ts(17,34): error TS2307: Unable to locate module 'serve-static'. typings/main/ambient/express/index.d.ts(18,27): error TS2307: Unable to locate module 'express-serve-static-core'.
To address this, I attempted to install both:
typings install serve-static --ambient --save
typings install express-serve-static --ambient --save
Upon running tsc again, another error surfaced:
typings/main/ambient/serve-static/index.d.ts(79,24): error TS2307: Unable to locate module 'mime'.
How can these issues be resolved? Is there a way to automatically install all dependencies for express?