Closed mickeyreg closed 2 months ago
Interesting, on a fresh clone of the repo I don't have any issues with the dependencies:
2$ make run
npm install
added 97 packages, and audited 98 packages in 620ms
20 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
./node_modules/.bin/ts-node --esm http_server.ts
Searching for devices..
.
.
.
^C
But my node is version v18.16.0
-- what's your node version?
Hmmm... I'm newbie in npm and node :)
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.4 LTS"
I have nodejs v12.22.9
installed globally with apt
. This version was in the error displayed after first type of make run
.
I can install node locally npm install node@18.20.1
, but it does not help.
$ npm ls
cam-reverse@ /.../cam-reverse
├── mocha@9.2.2
├── ts-node@10.9.2
├── node@18.20.1
└── typescript@5.0.4
I've installed additional repository in the Ubuntu and then I installed nodejs v18.20.1 using apt - cam-reverse server won't start.
It starts fine on v18.16.0.
The above was for testing. On the target system, Ubuntu Server 22.04 LTS, the app works fine with nodejs v12.22.9 - default on this system.
For the record, node v14.15.5 and npm v6.14.11 on macOS Monterey (12.6.6) worked fine, although I had to run npm i @types/node
before successfully running the HTTP server.
I've added a build / bundle step in CI in this repo, you should be able to download the bundles from here:
https://github.com/DavidVentura/cam-reverse/actions/runs/8845445916
and run with node bundle.cjs
-- I've tried with Node12 & Node18 on Linux and it seems to work
On the first try I had:
I thought it is the version problem, so after some searching I've made:
and the server started.
Maybe proper/required versions of the packages can be implemented somewhere in the code?