Open mstry9 opened 3 weeks ago
Not that anyone is even looking at this but here is the complete log:
mstry9@instance-20240511-203125:~$ sudo cat /root/.npm/_logs/2024-06-15T00_12_23_032Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
2 info using npm@6.14.18
3 info using node@v14.21.3
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle nightscout-librelink-up@2.6.1~prestart: nightscout-librelink-up@2.6.1
6 info lifecycle nightscout-librelink-up@2.6.1~start: nightscout-librelink-up@2.6.1
7 verbose lifecycle nightscout-librelink-up@2.6.1~start: unsafe-perm in lifecycle true
8 verbose lifecycle nightscout-librelink-up@2.6.1~start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/mstry9/main/nightscout-librelink-up-main/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
9 verbose lifecycle nightscout-librelink-up@2.6.1~start: CWD: /home/mstry9/main/nightscout-librelink-up-main
10 silly lifecycle nightscout-librelink-up@2.6.1~start: Args: [ '-c', 'npx ts-node --transpile-only src/index.ts' ]
11 silly lifecycle nightscout-librelink-up@2.6.1~start: Returned: code: 1 signal: null
12 info lifecycle nightscout-librelink-up@2.6.1~start: Failed to exec start script
13 verbose stack Error: nightscout-librelink-up@2.6.1 start: npx ts-node --transpile-only src/index.ts
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.npx ts-node --transpile-only src/index.ts
22 error Exit status 1
23 error Failed at the nightscout-librelink-up@2.6.1 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
from the logs it looks like you have to run 'npm install' before running the application. I never used Google Cloud but is there a step which lets you run the command before starting the application?
Thanks, that would probably work but this version of Ubuntu is so stripped down to keep the cost free it wouldn't install npm. I'll just keep using Shuggah as the uploader. Mostly just playing here anyway.
I also run Nightscout on Google Cloud but get a slightly different error
nightscout-librelink-up@2.6.1 start /home/martinlammers/nightscout-librelink-up-2.6.1
> npx ts-node --transpile-only src/index.ts
Unexpected token ?
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! nightscout-librelink-up@2.6.1 start: `npx ts-node --transpile-only src/index.ts`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nightscout-librelink-up@2.6.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/martinlammers/.npm/_logs/2024-06-26T19_36_59_154Z-debug.log
Or is this the same problem?
I've setup the NightScout in Google, https://navid200.github.io/xDrip/docs/Nightscout/GoogleCloud.html, and it works so I tried to install this and get this error. Maybe the setup from here doesn't support this?
Here's what I see when I run my start.sh
mstry9@instance-20240511-203125:~/main/nightscout-librelink-up-main$ sudo bash start.sh start.sh: line 2: rt: command not found
npx: installed 17 in 2.185s Cannot find module 'typescript' Require stack:
npx ts-node --transpile-only src/index.ts
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the nightscout-librelink-up@2.6.1 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm WARN Local package.json exists, but node_modules missing, did you mean to install?npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2024-06-15T00_12_23_032Z-debug.log mstry9@instance-20240511-203125:~/main/nightscout-librelink-up-main$