javascript - Meteor 1.4.1.1 在添加 Angular 模板时抛出错误

标签 javascript angularjs meteor web

我刚刚安装了 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/

相关文章:

javascript - meteor 排序不区分大小写

javascript - 将 "(0)"附加到这个闭包函数的目的是什么?

AngularJS dirPagination 选择所有可见行

javascript - 从 JSON 获取数据时不显示任何内容

javascript - 温泉 - 对话框中的按钮不起作用

javascript - 在 Bootstrap Modal 中使用 Angular Controller

javascript - 使用导入,服务器如何与客户端通信?

Meteor - 保护表单和存储敏感数据的最佳过程是什么

javascript - Js重新加载这个进度条onclick

javascript - 将组件注册到现有的 Vue.js 实例