添加角度模板时,Meteor 1.4.1.1抛出错误 [英] Meteor 1.4.1.1 thrown error when add angular templates
问题描述
我只是安装Meteor 1.4.1.1。在我的32位Ubuntu 12.04上。但是在尝试添加角度模板时我没有运气。
以下是我收到的错误消息:
I just install Meteor 1.4.1.1. on my 32 bit Ubuntu 12.04. But I haven't luck when trying to add angular templates. Here is the error message I've got:
/home/wandyatmono/.meteor/packages/meteor-tool/.1.4.1_1.1l5666a+ + os.linux.x86_32 + web.browser + web.cordova / mt-os.linux.x86_32 / isopackets / ddp / npm / node_modules / meteor / promise / node_modules / meteor-promise / promise_server.js:165
抛出错误;
^
/home/wandyatmono/.meteor/packages/meteor-tool/.1.4.1_1.1l5666a++os.linux.x86_32+web.browser+web.cordova/mt-os.linux.x86_32/isopackets/ddp/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:165 throw error; ^
错误:ENOENT:没有这样的文件或目录,在错误时打开'/tmp/mt-14c7sa8/os.json'
本地人)
Error: ENOENT: no such file or directory, open '/tmp/mt-14c7sa8/os.json' at Error (native)
有人可以告诉我原因吗?!
Can somebody tell me why?!
推荐答案
使用这个命令:
meteor npm rebuild
如果问题仍未解决 - 请尝试这个
If the issue is still un-resolved- Try this
在那里引用解决方案:
将54.192.225.217 warehouse.meteor.com添加到我的主机文件中解决了这个问题。
Adding "54.192.225.217 warehouse.meteor.com" to my host file fixed the issue.
如果您的环境是Ubuntu,那么打开终端和粘贴
If your environment is Ubuntu, then open the terminal and paste
sudo -i gedit /etc/hosts Paste: "54.192.225.217 warehouse.meteor.com"
在文件的末尾。保存并关闭。现在运行你的应用程序。
at the end of the file. save and close. Now run your app.
这篇关于添加角度模板时,Meteor 1.4.1.1抛出错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!