我刚刚安装了 Meteor 1.4.1.1。在我的 32 位 Ubuntu 12.04 上。但是我在尝试添加 Angular 模板时运气不好。 这是我收到的错误消息:
/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 抛出错误; ^
错误:ENOENT:没有这样的文件或目录,打开“/tmp/mt-14c7sa8/os.json” 出错时( native )
谁能告诉我为什么?!
最佳答案
使用这个命令:
meteor npm 重建
如果问题仍未解决 - 请尝试 this
在那里引用解决方案:
Adding "54.192.225.217 warehouse.meteor.com" to my host file fixed the issue.
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.
关于javascript - Meteor 1.4.1.1 在添加 Angular 模板时抛出错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39423302/