流星/节点模块中的非法令牌=>饼干

Illegal token in meteor/node module => cookies

本文关键字:饼干 令牌 非法 节点 模块 流星      更新时间:2023-09-26

当我得到这个持续的错误时,我试图跟随g00glen00b的流星/twitter walkthrough (http://g00glen00b.be/meteor-twitter-streaming/)。如有任何帮助或提示,我将不胜感激。

things I tried

  • 卸载/安装npm
  • 卸载/重新安装twitter包
  • 卸载/安装cookie
  • 查找隐藏字符

我的已部署应用

(htp://dbcmarch.meteor.com)

<标题>流星误差
 => Errors prevented startup:
While building the application:
node_modules/twitter/node_modules/cookies/test/express.js:1:15: Unexpected token ILLEGAL
node_modules/twitter/node_modules/cookies/test/http.js:1:15: Unexpected token ILLEGAL
<标题> express.js h1> http.js h1> div class="answers">

meteor包含npm,运行'mrt add npm'是完全可以接受的,但是npm不应该被用来安装它的包(例如npm install twitter)到meteor项目中。您可以通过一个包来要求它们。json文件。

为了避免非法的令牌错误并使服务器运行起来,我删除了项目文件夹中的主node_module目录。

查看流星谷歌组的建议!