进入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 installtsd query express --action install
本文介绍如何在Windows环境下使用npm安装Express框架,并通过Express-generator快速搭建应用。此外还介绍了如何利用TSD安装TypeScript定义文件,实现Node.js项目的代码补全功能。
9537

被折叠的 条评论
为什么被折叠?



