Frage

I was attempting to follow along with g00glen00b's meteor/twitter walkthrough (http://g00glen00b.be/meteor-twitter-streaming/) when i got this persistent error. any help or hints would be much obliged.

things i tried

  • uninstall/reinstall npm
  • uninstall/reinstall twitter package
  • uninstall/reinstall cookies
  • searching for hidden characters

my deployed app

(htp://dbcmarch.meteor.com)

meteor error

 => 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

#!/usr/bin/env node

var assert = require("assert"),
    express = require("express"),

http.js

#!/usr/bin/env node

var assert = require("assert"),
    http = require("http"),
War es hilfreich?

Lösung

meteor includes npm, and its perfectly acceptable to run 'mrt add npm' however npm should not be used to install its packages (e.g. npm install twitter) into a meteor project. you can require them via a packages.json file.

in order to avoid the illegal token error and get the server up running, i deleted the primary node_module dir in my project folder.

check the meteor google group for advice!

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top