TypeScriptでexpressを使ってHello worldしてみた。けっこうはまったのでメモメモ。使ってるTypeScriptのバージョンは1.0.1。 準備 npm install -g typescript npm install --save express 試しにコンパイル こんな感じのコードを書いてコンパイルしてみる。 $ tsc --module commonjs hello.ts コンパイルエラーが...(;´Д`) ./typescript-sample/server/hello.ts(1,1): error TS2071: Unable to resolve external module ''express''. ./typescript-sample/server/hello.ts(1,1): error TS2072: Module cannot be al
![TypeScriptでNode.jsのexpressを使ってHello worldしてみる - oinume journal](https://cdn-ak-scissors.b.st-hatena.com/image/square/c709855bc481b5f957ce50933957c18aa123e8ea/height=288;version=1;width=512/http%3A%2F%2Fecx.images-amazon.com%2Fimages%2FI%2F418SGR3Kp8L.jpg)