How to install express in typings?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: 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