Can identify the problem

I had this error when running the twilio code as per this link :“https://github.com/edgeimpulse/example-linux-with-twilio

pi@raspberrypi:~/example-linux-with-twilio $ npm run build

edge-impulse-example-linux-with-twilio@1.0.0 build /home/pi/example-linux-with-twilio
tsc -p .

sh: 1: tsc: not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! edge-impulse-example-linux-with-twilio@1.0.0 build: tsc -p .
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the edge-impulse-example-linux-with-twilio@1.0.0 build 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! /home/pi/.npm/_logs/2021-06-01T11_07_24_955Z-debug.log

Hello @finalyearproject,

It seems that you have not installed the npm package:
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

Can you try running:
npm install

Before the npm run build command.

Regards,

Louis

1 Like