问题描述
所有人
我有一个运行0.5.9的Meteor项目.我想在本地设置Meteor 0.5.9以及Meteorite(因为我使用了一些MRT程序包).
I've got a Meteor project running 0.5.9. I want to setup Meteor 0.5.9 locally as well as Meteorite (since I use some mrt packages).
我已经在无业游民的服务器上完成了Meteorite的全新安装.运行mrt命令会引发此错误:
I've done a clean install of Meteorite on a vagrant server. Running mrt command throws this error:
在陨石做事的时候站起来
Stand back while Meteorite does its thing
安装流星
标签: https://github.com/meteor/meteor.git#v0. 5.9
安装智能软件包
子进程超时,15秒钟没有活动
child process timed out, no activity for 15 seconds
错误:null命令失败:远程:计数对象:56555,已完成. 远程:压缩对象:100%(17136/17136),已完成.远程:总计 56555(增量39097),已重用56241(增量38865)接收对象: 100%(56555/56555),19.19 MiB |已完成2.34 MiB/s.解决增量: 100%(39097/39097),完成.
ERROR: null Command failed: remote: Counting objects: 56555, done. remote: Compressing objects: 100% (17136/17136), done. remote: Total 56555 (delta 39097), reused 56241 (delta 38865) Receiving objects: 100% (56555/56555), 19.19 MiB | 2.34 MiB/s, done. Resolving deltas: 100% (39097/39097), done.
STDOUT:克隆到 '/home/vagrant/.meteorite/source/meteor/meteor'...
STDOUT: Cloning into '/home/vagrant/.meteorite/source/meteor/meteor'...
STDERR:远程:计数对象:56555,已完成.远程:压缩 对象:100%(17136/17136),完成.远程:总计56555(增量39097), 重用的56241(增量38865)接收对象:100%(56555/56555), 19.19 MiB |已完成2.34 MiB/s.解析增量:已完成100%(39097/39097).
STDERR: remote: Counting objects: 56555, done. remote: Compressing objects: 100% (17136/17136), done. remote: Total 56555 (delta 39097), reused 56241 (delta 38865) Receiving objects: 100% (56555/56555), 19.19 MiB | 2.34 MiB/s, done. Resolving deltas: 100% (39097/39097), done.
/usr/local/lib/node_modules/meteorite/lib/sources/git.js:124 抛出克隆存储库时出现问题:" + self.url + ^克隆存储库时出现问题: https://github.com/meteor/meteor.git 请检查 https://github.com/oortcloud/meteorite/blob/master/CONTRIBUTING .md#疑难解答 以获得潜在的解释.
/usr/local/lib/node_modules/meteorite/lib/sources/git.js:124 throw "There was a problem cloning repo: " + self.url + ^ There was a problem cloning repo: https://github.com/meteor/meteor.git Please check https://github.com/oortcloud/meteorite/blob/master/CONTRIBUTING.md#troubleshooting for potential explanations.
第二次运行mrt
后,出现此错误:
After running mrt
for a second time, I get this error:
/usr/local/lib/node_modules/meteorite/lib/meteor.js:88 抛出命令退出并带有" +代码+"/" +信号; ^命令以1/null退出
/usr/local/lib/node_modules/meteorite/lib/meteor.js:88 throw "Command exited with " + code + "/" + signal; ^ Command exited with 1/null
再次运行它,我得到:
错误:null命令失败:远程:重用现有包:706,已完成. 远程:总计706(增量0),已重用0(增量0)接收对象: 100%(706/706),123.70 KiB,完成.解析增量:100%(372/372), 完毕.
ERROR: null Command failed: remote: Reusing existing pack: 706, done. remote: Total 706 (delta 0), reused 0 (delta 0) Receiving objects: 100% (706/706), 123.70 KiB, done. Resolving deltas: 100% (372/372), done.
STDOUT:克隆到 '/home/vagrant/.meteorite/source/tmeasday/meteor-router'...
STDOUT: Cloning into '/home/vagrant/.meteorite/source/tmeasday/meteor-router'...
STDERR:远程:重用现有包:706,完成.远程:总计706 (增量0),重用0(增量0)接收对象:100%(706/706), 123.70 KiB,已完成.解析增量:已完成100%(372/372).
STDERR: remote: Reusing existing pack: 706, done. remote: Total 706 (delta 0), reused 0 (delta 0) Receiving objects: 100% (706/706), 123.70 KiB, done. Resolving deltas: 100% (372/372), done.
/usr/local/lib/node_modules/meteorite/lib/sources/git.js:124 抛出克隆存储库时出现问题:" + self.url + ^克隆存储库时出现问题: https://github.com/tmeasday/meteor-router.git 请检查 https://github.com/oortcloud/meteorite/blob/master/CONTRIBUTING .md#疑难解答 以获得潜在的解释.
/usr/local/lib/node_modules/meteorite/lib/sources/git.js:124 throw "There was a problem cloning repo: " + self.url + ^ There was a problem cloning repo: https://github.com/tmeasday/meteor-router.git Please check https://github.com/oortcloud/meteorite/blob/master/CONTRIBUTING.md#troubleshooting for potential explanations.
然后再说一次:
错误:null命令失败:远程:重用现有包:46,已完成. 远程:总计46(增量0),已重用0(增量0)
ERROR: null Command failed: remote: Reusing existing pack: 46, done. remote: Total 46 (delta 0), reused 0 (delta 0)
STDOUT:克隆到 '/home/vagrant/.meteorite/source/tmeasday/meteor-page-js-ie-support'...
STDOUT: Cloning into '/home/vagrant/.meteorite/source/tmeasday/meteor-page-js-ie-support'...
STDERR:远程:重用现有包:46,已完成.远程:总计46 (delta 0),重用0(delta 0)
STDERR: remote: Reusing existing pack: 46, done. remote: Total 46 (delta 0), reused 0 (delta 0)
/usr/local/lib/node_modules/meteorite/lib/sources/git.js:124 抛出克隆存储库时出现问题:" + self.url + ^克隆存储库时出现问题: https://github.com/tmeasday/meteor-page-js-ie -support.git 请检查 https://github.com/oortcloud/meteorite/blob/master/CONTRIBUTING .md#疑难解答 以获得潜在的解释.
/usr/local/lib/node_modules/meteorite/lib/sources/git.js:124 throw "There was a problem cloning repo: " + self.url + ^ There was a problem cloning repo: https://github.com/tmeasday/meteor-page-js-ie-support.git Please check https://github.com/oortcloud/meteorite/blob/master/CONTRIBUTING.md#troubleshooting for potential explanations.
然后,最后,我不断收到此错误:
Then finally, I keep getting this error:
完成安装智能软件包
好,一切准备就绪.流星来了!
Ok, everything's ready. Here comes Meteor!
[[[[[[〜〜myprojdir]]]]]
[[[[[ ~/myprojdir ]]]]]
运行于:localhost:3000/捆绑包中没有依赖项信息. 文件系统监视已禁用.错误阻止启动:异常 捆绑应用程序时:错误:无法在此处设置DOCTYPE. (流星 为您设置)-第1行,文件 /home/vagrant/myprojdir/packages/page-js-ie-support/page-js/examples/album/index.html 位于html_scanner.scan.parseError(/home/vagrant/.meteorite/meteors/meteor/meteor/45fef52095bb6726cc1b2f05008ad891c446100a/packages/templating/html_scanner.js:23:14) 在Object.html_scanner.scan(/home/vagrant/.meteorite/meteors/meteor/meteor/45fef52095bb6726cc1b2f05008ad891c446100a/packages/templating/html_scanner.js:58:17) 在/home/vagrant/.meteorite/meteors/meteor/meteor/45fef52095bb6726cc1b2f05008ad891c446100a/packages/templating/package.js:46:32 在_.extend.add_file(/home/vagrant/.meteorite/meteors/meteor/meteor/45fef52095bb6726cc1b2f05008ad891c446100a/app/lib/bundler.js:206:5) 在self.api.add_files(/home/vagrant/.meteorite/meteors/meteor/meteor/45fef52095bb6726cc1b2f05008ad891c446100a/app/lib/bundler.js:107:16) 在Array.forEach(本机) 在功能上 .each. .forEach(/home/vagrant/.meteorite/meteors/meteor/meteor/45fef52095bb6726cc1b2f05008ad891c446100a/dev_bundle/lib/node_modules/underscore/underscore.js:79:11) 在self.api.add_files(/home/vagrant/.meteorite/meteors/meteor/meteor/45fef52095bb6726cc1b2f05008ad891c446100a/app/lib/bundler.js:106:11) 在Array.forEach(本机) 在功能上. .each. .forEach(/home/vagrant/.meteorite/meteors/meteor/meteor/45fef52095bb6726cc1b2f05008ad891c446100a/dev_bundle/lib/node_modules/underscore/underscore.js:79:11) 在Object.self.api.add_files(/home/vagrant/.meteorite/meteors/meteor/meteor/45fef52095bb6726cc1b2f05008ad891c446100a/app/lib/bundler.js:105:9) 位于_.extend.init_from_app_dir [作为on_use_handler](/home/vagrant/.meteorite/meteors/meteor/meteor/45fef52095bb6726cc1b2f05008ad891c446100a/app/lib/packages.js:139:11) 在_.extend.use(/home/vagrant/.meteorite/meteors/meteor/meteor/45fef52095bb6726cc1b2f05008ad891c446100a/app/lib/bundler.js:391:11) 在Object.exports.bundle(/home/vagrant/.meteorite/meteors/meteor/meteor/45fef52095bb6726cc1b2f05008ad891c446100a/app/lib/bundler.js:721:12) 在/home/vagrant/.meteorite/meteors/meteor/meteor/45fef52095bb6726cc1b2f05008ad891c446100a/app/meteor/run.js:613:26 在exports.inFiber(/home/vagrant/.meteorite/meteors/meteor/meteor/45fef52095bb6726cc1b2f05008ad891c446100a/app/lib/fiber-helpers.js:22:12)
Running on: localhost:3000/ No dependency info in bundle. Filesystem monitoring disabled. Errors prevented startup: Exception while bundling application: Error: Can't set DOCTYPE here. (Meteor sets for you) - line 1, file /home/vagrant/myprojdir/packages/page-js-ie-support/page-js/examples/album/index.html at html_scanner.scan.parseError (/home/vagrant/.meteorite/meteors/meteor/meteor/45fef52095bb6726cc1b2f05008ad891c446100a/packages/templating/html_scanner.js:23:14) at Object.html_scanner.scan (/home/vagrant/.meteorite/meteors/meteor/meteor/45fef52095bb6726cc1b2f05008ad891c446100a/packages/templating/html_scanner.js:58:17) at /home/vagrant/.meteorite/meteors/meteor/meteor/45fef52095bb6726cc1b2f05008ad891c446100a/packages/templating/package.js:46:32 at _.extend.add_file (/home/vagrant/.meteorite/meteors/meteor/meteor/45fef52095bb6726cc1b2f05008ad891c446100a/app/lib/bundler.js:206:5) at self.api.add_files (/home/vagrant/.meteorite/meteors/meteor/meteor/45fef52095bb6726cc1b2f05008ad891c446100a/app/lib/bundler.js:107:16) at Array.forEach (native) at Function..each..forEach (/home/vagrant/.meteorite/meteors/meteor/meteor/45fef52095bb6726cc1b2f05008ad891c446100a/dev_bundle/lib/node_modules/underscore/underscore.js:79:11) at self.api.add_files (/home/vagrant/.meteorite/meteors/meteor/meteor/45fef52095bb6726cc1b2f05008ad891c446100a/app/lib/bundler.js:106:11) at Array.forEach (native) at Function..each..forEach (/home/vagrant/.meteorite/meteors/meteor/meteor/45fef52095bb6726cc1b2f05008ad891c446100a/dev_bundle/lib/node_modules/underscore/underscore.js:79:11) at Object.self.api.add_files (/home/vagrant/.meteorite/meteors/meteor/meteor/45fef52095bb6726cc1b2f05008ad891c446100a/app/lib/bundler.js:105:9) at _.extend.init_from_app_dir [as on_use_handler] (/home/vagrant/.meteorite/meteors/meteor/meteor/45fef52095bb6726cc1b2f05008ad891c446100a/app/lib/packages.js:139:11) at _.extend.use (/home/vagrant/.meteorite/meteors/meteor/meteor/45fef52095bb6726cc1b2f05008ad891c446100a/app/lib/bundler.js:391:11) at Object.exports.bundle (/home/vagrant/.meteorite/meteors/meteor/meteor/45fef52095bb6726cc1b2f05008ad891c446100a/app/lib/bundler.js:721:12) at /home/vagrant/.meteorite/meteors/meteor/meteor/45fef52095bb6726cc1b2f05008ad891c446100a/app/meteor/run.js:613:26 at exports.inFiber (/home/vagrant/.meteorite/meteors/meteor/meteor/45fef52095bb6726cc1b2f05008ad891c446100a/app/lib/fiber-helpers.js:22:12)
请解决该问题,然后重新启动.
Please fix the problem and restart.
/usr/local/lib/node_modules/meteorite/lib/command.js:35 抛出命令退出,并带有" +代码+"/" +信号; ^命令以1/null退出
/usr/local/lib/node_modules/meteorite/lib/command.js:35 throw "Command exited with " + code + "/" + signal; ^ Command exited with 1/null
推荐答案
因此,由于非显而易见的错误,这有点棘手.
So, this was a bit tricky due to non-obvious errors.
陨石非常适合获得不同版本的流星.因为我想要流星0.5.9,所以我想这就像安装陨石并让它撕裂一样容易!从问题中的错误可以看出来的不多.
Meteorite is great for getting different versions of meteor. Since I wanted meteor 0.5.9, I figured it would be as easy as installing meteorite and letting 'er rip! Not so much, as you can see from the errors in the question.
几乎放弃了,我想,既然我正在寻找Meteor 0.5.9,我应该尝试安装当时可用的陨石版本!
After almost giving up, I thought, hey since I'm looking for Meteor 0.5.9, I should try and install the version of meteorite that was available at that time!
在陨石github页面中,我发现分支0.5.9
与流星关系非常紧密版本0.5.9.因此,我下载了该陨石分支的压缩版本,并将其解压缩到我的计算机中.
In the meteorite github page, I found that the branch 0.5.9
was pretty closely released with meteor version 0.5.9. So, I downloaded the zipped version of that meteorite branch and unzipped it in my machine.
然后我使用npm安装了它:
Then I installed it using npm:
sudo npm install -g meteorite-0.5.9
然后,我在我的应用目录中运行了mrt
,就这样,它起作用了! :D
Then, I ran mrt
in my app directory and just like that, it worked! :D
这篇关于由于Meteorite软件包,Meteor无法启动(使用Meteorite软件包设置了较旧的Meteor版本)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!