meteor教程
meteor第一次开发的Windows环境部署
第一次看到这个框架的时候就有很大兴趣,所以现在开始尝试写一个dome玩玩。
安装chocolatey
- 打开PowerShell.exe。
- 运行以下命令 Set-ExecutionPolicy Bypass -Scope Process -Force
- 将以下脚本另存为ChocolateyInstallNonAdmin.ps1
- 运行.\ChocolateyInstallNonAdmin.ps1
- 安装完第二步的时候,会显示安装路径,找到安装路径下的choco.exe,然后把choco设置成系统环境变量。
# Set directory for installation - Chocolatey does not lock
# down the directory if not the default
$InstallDir='C:\ProgramData\chocoportable'
$env:ChocolateyInstall="$InstallDir"
# If your PowerShell Execution policy is restrictive, you may
# not be able to get around that. Try setting your session to
# Bypass.
Set-ExecutionPolicy Bypass -Scope Process -Force;
# All install options - offline, proxy, etc at
# https://chocolatey.org/install
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
上面是我之前安装的方法,下面用cmd.exe安装只需一个命令
1 在cmd窗口中运行
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
这里就是把第一步完成了。下面开始第二步
安装meteor
- 在PowerShell命令行中输入:choco install meteor (如果有问题,执行第二步,没有问题就执行第三步)
- 在cmd.exe命令行中输入:choco install meteor。安装过程过程中需要输入y/n,选择y继续安装
- 这个安装过程时间比较长,耐心等待。
这里我给出我参考的链接: 参考链接
这里有多种安装方法,可以选择适合自己的安装方法。
最后一步
昨天操作完上面的步骤后,发现还是用不了meteor 命令。估计是安装了meteor,没有设置环境变量。后面我设置了环境变量,然后打开webstorm后,就可以创建meteor app了。对了,环境变量的值是xx/xx/.meteor xx/xx/是你安装meteor的路径,如果你找不到,就在c盘全局搜索.meteor,应该是可以找到的。
6149



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



