Ich bin völlig neu in NodeJs. Ich verwende node 5.0.0
eine repo kloniert und startete den Befehl:Fehler beim Starten der Knoten App Konfigurationsdatei
node ./app.js -c config.yaml
aber ich habe diesen Fehler
node_modules/q/q.js:155
throw e;
^
SyntaxError: Unexpected token u
at Object.parse (native)
at yaml2json (/home/../mosaic-techonmap-server/source/config.access.js:13:21)
at module.exports (/home/../mosaic-techonmap-server/source/config.access.js:152:23)
at /home/../app.js:89:45
at _fulfilled (/home/../node_modules/q/q.js:854:54)
at self.promiseDispatch.done (/home/../mosaic-techonmap-server/node_modules/q/q.js:883:30)
at Promise.promise.promiseDispatch (/home/../mosaic-techonmap-server/node_modules/q/q.js:816:13)
at /home/../mosaic-techonmap-server/node_modules/q/q.js:877:14
at runSingle (/home/../mosaic-techonmap-server/node_modules/q/q.js:137:13)
at flush (/home/../mosaic-techonmap-server/node_modules/q/q.js:125:13)
Jemand eine Idee?
EDIT: Hier ist der Code der Datei config.yaml
---
# Configuration sample file for Jingo (YAML)
application:
title: "CartoWiki"
server:
hostname: "localhost"
port: 6067
localOnly: false
baseUrl: "http://localhost:6067"
authentication:
google:
enabled: true
twitter:
enabled: true
oauthkeys:
consumerKey : ''
consumerSecret : ''
cacheExpire: 3600000
facebook:
enabled: true
oauthkeys:
clientID : ''
clientSecret : ''
alone:
enabled: false
username: ""
passwordHash: ""
email: ""
twitterClient:
consumerKey : ''
consumerSecret : ''
accessTokenKey : ''
accessTokenSecret : ''
haben Sie 'npm install' vorher ausgeführt? –
Können Sie kein Problem auf dem Github des Autors erstellen? – evolutionxbox
post die 'config.yaml' Code auch –