andrei-tatar / nora-service

NORA backend service
https://node-red-google-home.herokuapp.com
34 stars 30 forks source link

Erros building the app #32

Closed rockstar2020 closed 3 years ago

rockstar2020 commented 3 years ago

Hello @andrei-tatar I have successfully completed all steps of the setups but am stuck with building the app. I tried to run the command on my windows terminal as well as Raspberry Pi but both failed. Here is the npm error log:

0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'build' ] 2 info using npm@6.14.8 3 info using node@v12.18.4 4 verbose run-script [ 'prebuild', 'build', 'postbuild' ] 5 info lifecycle node-red-google-home@1.0.0~prebuild: node-red-google-home@1.0.0 6 info lifecycle node-red-google-home@1.0.0~build: node-red-google-home@1.0.0 7 verbose lifecycle node-red-google-home@1.0.0~build: unsafe-perm in lifecycle true 8 verbose lifecycle node-red-google-home@1.0.0~build: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/pi/nora-service/node_modules/.bin:/usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/pi/nora-service/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games 9 verbose lifecycle node-red-google-home@1.0.0~build: CWD: /home/pi/nora-service 10 silly lifecycle node-red-google-home@1.0.0~build: Args: [ '-c', 'tsc' ] 11 info lifecycle node-red-google-home@1.0.0~build: Failed to exec build script 12 verbose stack Error: node-red-google-home@1.0.0 build: tsc 12 verbose stack spawn ENOENT 12 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18) 12 verbose stack at ChildProcess.emit (events.js:315:20) 12 verbose stack at maybeClose (internal/child_process.js:1021:16) 12 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5) 13 verbose pkgid node-red-google-home@1.0.0 14 verbose cwd /home/pi/nora-service 15 verbose Linux 5.4.51-v7+ 16 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "build" 17 verbose node v12.18.4 18 verbose npm v6.14.8 19 error code ELIFECYCLE 20 error syscall spawn 21 error file sh 22 error errno ENOENT 23 error node-red-google-home@1.0.0 build: tsc 23 error spawn ENOENT 24 error Failed at the node-red-google-home@1.0.0 build script. 24 error This is probably not a problem with npm. There is likely additional logging output above. 25 verbose exit [ 1, true ]

What am I missing?

Many thanks in advance