From eb247646a0010f612fe802d9785164ce4b2ad619 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Wed, 23 Aug 2017 15:54:43 +0200 Subject: [PATCH] nearly nothin --- npm-debug.log | 45 --------------------------------------------- package.json | 2 +- src/main.ts | 2 -- 3 files changed, 1 insertion(+), 48 deletions(-) delete mode 100644 npm-debug.log diff --git a/npm-debug.log b/npm-debug.log deleted file mode 100644 index 3c5d893..0000000 --- a/npm-debug.log +++ /dev/null @@ -1,45 +0,0 @@ -0 info it worked if it ends with ok -1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'start' ] -2 info using npm@3.10.10 -3 info using node@v6.11.2 -4 verbose run-script [ 'prestart', 'start', 'poststart' ] -5 info lifecycle dispatcher@1.0.0~prestart: dispatcher@1.0.0 -6 silly lifecycle dispatcher@1.0.0~prestart: no script for prestart, continuing -7 info lifecycle dispatcher@1.0.0~start: dispatcher@1.0.0 -8 verbose lifecycle dispatcher@1.0.0~start: unsafe-perm in lifecycle true -9 verbose lifecycle dispatcher@1.0.0~start: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/home/wn/workspace-node/Dispatcher/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/wn/.local/bin:/home/wn/bin:/opt/jdk/bin:/opt/apache-maven/bin:/home/wn/mos/bin -10 verbose lifecycle dispatcher@1.0.0~start: CWD: /home/wn/workspace-node/Dispatcher -11 silly lifecycle dispatcher@1.0.0~start: Args: [ '-c', 'node dist/main.js' ] -12 silly lifecycle dispatcher@1.0.0~start: Returned: code: 1 signal: null -13 info lifecycle dispatcher@1.0.0~start: Failed to exec start script -14 verbose stack Error: dispatcher@1.0.0 start: `node dist/main.js` -14 verbose stack Exit status 1 -14 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:255:16) -14 verbose stack at emitTwo (events.js:106:13) -14 verbose stack at EventEmitter.emit (events.js:191:7) -14 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14) -14 verbose stack at emitTwo (events.js:106:13) -14 verbose stack at ChildProcess.emit (events.js:191:7) -14 verbose stack at maybeClose (internal/child_process.js:891:16) -14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) -15 verbose pkgid dispatcher@1.0.0 -16 verbose cwd /home/wn/workspace-node/Dispatcher -17 error Linux 4.9.0-3-amd64 -18 error argv "/usr/bin/nodejs" "/usr/bin/npm" "start" -19 error node v6.11.2 -20 error npm v3.10.10 -21 error code ELIFECYCLE -22 error dispatcher@1.0.0 start: `node dist/main.js` -22 error Exit status 1 -23 error Failed at the dispatcher@1.0.0 start script 'node dist/main.js'. -23 error Make sure you have the latest version of node.js and npm installed. -23 error If you do, this is most likely a problem with the dispatcher package, -23 error not with npm itself. -23 error Tell the author that this fails on your system: -23 error node dist/main.js -23 error You can get information on how to open an issue for this project with: -23 error npm bugs dispatcher -23 error Or if that isn't available, you can get their info via: -23 error npm owner ls dispatcher -23 error There is likely additional logging output above. -24 verbose exit [ 1, true ] diff --git a/package.json b/package.json index a3d564d..772a6b8 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "dist/main.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "build": "tsc -p ./", + "build": "./node_modules/typescript/bin/tsc", "debug": "npm run build && node dist/main.js --loglevel debug", "start": "node dist/main.js" }, diff --git a/src/main.ts b/src/main.ts index 86eb77b..585e51a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -16,8 +16,6 @@ let mongo : MongoSave.MongoSave = new MongoSave.MongoSave() dispatcher.register('IoT/espThermometer2/#', 'MongoSave', mongo); -// plugintest1.pluginTest1Start(dispatcher) - dispatcher.exec() log.info("Dispatcher running")