Meteor在Windows下开发环境配置

来源:互联网 发布:阿里菜鸟云仓库 编辑:程序博客网 时间:2024/04/29 08:20

Meteor 1.1 版本是支持 Windows 操作系统的版本,同时还支持 MongoDB 3.0 版本。提供一个原生安装器,包括所有 Meteor SDK 关键部分,还有 Windows 特定的 Node.js 二进制和 MongoDB 数据库引擎。
此版本还集成了 Visual Studio (当前添加了更好的 JavaScript 支持),Azure 和其他 Microsoft 生态系统。
获取 Meteor:https://www.meteor.com/install。


1、通过下面的安装包下载
https://install.meteor.com/windows
然后运行即可,安装需要联网,等待一段时间后,安装完成会弹出界面要求注册。
注册完成后就自动关闭。
默认安装在C:\Users\administrator\AppData\Local\.meteor


2、在环境变量设置中,在PATH环境变量里添加Meteor的路径。
C:\Users\administrator\AppData\Local\.meteor


3、打开cmd,进入工程目录,开始测试meteor。
1)创建工程

D:\Develop\node\meteor>meteor create demoCreated a new Meteor app in 'demo'.To run your new app:  cd demo  meteorIf you are new to Meteor, try some of the learning resources here:  https://www.meteor.com/learn


2)执行工程

D:\Develop\node\meteor\demo>meteor[[[[[ ~\D\Develop\node\meteor\demo ]]]]]=> Started proxy.=> Started MongoDB.=> Started your app.=> App running at: http://localhost:3000/   Type Control-C twice to stop.

打开 http://localhost:3000/访问到正常的页面,代表成功了

0 0
原创粉丝点击