进入express的目录,
在终端中执行
npm install
启动express
npm start
可以在浏览器中输入网址:
http://localhost:3000看一下效果
安装TSD配置,可以让nodejs自动补全命令
he
TypeScript Definition Manager (TSD)
makes it easy to search for and install TypeScript definition files into your workspace. This tool will download the requested definition from the
DefinitelyTyped repository
. As we did with the express generator, we will install TSD globally using NPM so that you can use the tool in any application you create.
npm install -g tsd
安装相应模块的自动补全配置文件
tsd query node --action install
tsd query express --action install