我在Win7上运行Meteor。由于Windows尚未支持Meteorite,因此我按照http://goo.gl/BWauOk中提到的说明进行操作。我配置我的设置以绕过代理,我能够克隆铁路由器的软件包和依赖项。所以,我不认为我的代理设置有问题。但是,当我尝试从项目中启动流星时,我收到以下错误:
$ meteor
[[[[[ c:\temp\projects\testapp ]]]]]
iron-router: updating npm dependencies -- connect...
No dependency info in bundle. Filesystem monitoring disabled.
=> Errors prevented startup:
Exception while bundling application:
Error: Can't install npm dependencies. Check your internet connection and try ag
ain.
at Object._.extend._ensureConnected (c:\Program Files (x86)\Meteor\tools\met
eor_npm.js:375:13)
at Object._.extend._installNpmModule (c:\Program Files (x86)\Meteor\tools\me
teor_npm.js:344:10)
at _.extend._createFreshNpmDirectory (c:\Program Files (x86)\Meteor\tools\me
teor_npm.js:198:12)
at Function._.each._.forEach (c:\Program Files (x86)\Meteor\lib\node_modules
\underscore\underscore.js:86:24)
at Object._.extend._createFreshNpmDirectory (c:\Program Files (x86)\Meteor\t
ools\meteor_npm.js:197:7)
at Object._.extend.updateDependencies (c:\Program Files (x86)\Meteor\tools\m
eteor_npm.js:85:14)
at _.extend.installNpmDependencies (c:\Program Files (x86)\Meteor\tools\pack
ages.js:317:17)
at _.extend._maybeUpdateNpmDependencies (c:\Program Files (x86)\Meteor\tools
\bundler.js:441:13)
at _.extend.use (c:\Program Files (x86)\Meteor\tools\bundler.js:480:10)
at self.api.use (c:\Program Files (x86)\Meteor\tools\bundler.js:133:21)
at Array.forEach (native)
at Function._.each._.forEach (c:\Program Files (x86)\Meteor\lib\node_modules
\underscore\underscore.js:78:11)
at Object.self.api.use (c:\Program Files (x86)\Meteor\tools\bundler.js:129:9
)
at null.on_use_handler (c:\temp\projects\testapp\packages\blaze-la
yout\package.js:6:7)
at _.extend.use (c:\Program Files (x86)\Meteor\tools\bundler.js:483:11)
at self.api.use (c:\Program Files (x86)\Meteor\tools\bundler.js:133:21)
at Array.forEach (native)
at Function._.each._.forEach (c:\Program Files (x86)\Meteor\lib\node_modules
\underscore\underscore.js:78:11)
at Object.self.api.use (c:\Program Files (x86)\Meteor\tools\bundler.js:129:9
)
at _.extend.init_from_app_dir [as on_use_handler] (c:\Program Files (x86)\Me
teor\tools\packages.js:238:11)
at _.extend.use (c:\Program Files (x86)\Meteor\tools\bundler.js:483:11)
at Object.exports.bundle (c:\Program Files (x86)\Meteor\tools\bundler.js:897
:12)
at c:\Program Files (x86)\Meteor\tools\run.js:698:26
at exports.inFiber (c:\Program Files (x86)\Meteor\tools\fiber-helpers.js:24:
12)
Please fix the problem and restart.
如何从Windows 7运行我的meteor应用程序?
答案 0 :(得分:0)
Iron Router适用于Meteor 0.8.0及更高版本。要使用早期版本,请使用小于0.7.0的IR版本。
您已在smart.json中指定了该版本?
答案 1 :(得分:0)
目前只存在一个古老版本的Meteor for windows。自当前Windows端口版本(0.6)以来,许多内容已经改变/改进。
版本1.1的官方Windows支持为under consideration,所以它会有一段时间,直到你得到适当的Windows支持。
目前最好的办法是使用Meteor应用程序运行linux vm。幸运的是,这对于流浪者来说非常容易。
git clone https://github.com/gfk-ba/meteor-dev-vm.git
然后运行:
cd meteor-dev-vm/tools
./setup.sh
./run.sh
现在你有一个带有最新版本的流星和陨石的linux开发vm。您可以使用vagrant ssh
连接到它。之后,您可以轻松使用陨石或流星的新包装系统。