ptz-server
ptz-server copied to clipboard
npm envroment
What version is good for running ptz-server?
Almostry npm run build says...
for (let i = startIndex ?? 0; i < array.length; i++) {
ubuntu@vaio0001:~/git/ptz-server$ nvm ls v8.17.0 v10.24.1 v12.22.12 v14.21.3 v16.20.2 -> v20.12.0 system default -> 14 (-> v14.21.3) iojs -> N/A (default) unstable -> N/A (default) node -> stable (-> v20.12.0) (default) stable -> 20.12 (-> v20.12.0) (default) lts/* -> lts/iron (-> v20.12.0) lts/argon -> v4.9.1 (-> N/A) lts/boron -> v6.17.1 (-> N/A) lts/carbon -> v8.17.0 lts/dubnium -> v10.24.1 lts/erbium -> v12.22.12 lts/fermium -> v14.21.3 lts/gallium -> v16.20.2 lts/hydrogen -> v18.20.0 (-> N/A) lts/iron -> v20.12.0
Any idea??
nvm install v14.21.3 nvm use v14.21.3 nvm use node v16.20.2 npm audit fix npm install typescript -g
npm run build
and I got an error
~/git/ptz-server$ npm run build
[email protected] build tsc
node_modules/@utopian/visca/dist/visca-serial.d.ts:1:23 - error TS2688: Cannot find type definition file for 'serialport'.
1 ///
node_modules/@utopian/visca/dist/visca-serial.d.ts:4:29 - error TS2307: Cannot find module '../../node_modules/@types/serialport' or its corresponding type declarations.
4 import SerialPort = require("../../node_modules/@types/serialport"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 2 errors in the same file, starting at: node_modules/@utopian/visca/dist/visca-serial.d.ts:1
4 import SerialPort = require("../../node_modules/@types/serialport");
it seems ../../../../node_modules/@types/serialport is ok to run
Thanks a lot :)
node_modules/@utopian/visca/dist/visca-serial.d.ts:4:29 - error TS2307: Cannot find module '../../node_modules/@types/serialport' or its corresponding type declarations.
4 import SerialPort = require("../../node_modules/@types/serialport");
look ok. and next??
~/git/ptz-server$ npm run build
[email protected] build tsc
~/git/ptz-server$ cat /home/mack/.npm/_logs/2024-03-29T22_45_43_712Z-debug-0.log 0 verbose cli /home/mack/.nvm/versions/node/v16.20.2/bin/node /home/mack/.nvm/versions/node/v16.20.2/bin/npm 1 info using [email protected] 2 info using [email protected] 3 timing npm:load:whichnode Completed in 0ms 4 timing config:load:defaults Completed in 1ms 5 timing config:load:file:/home/mack/.nvm/versions/node/v16.20.2/lib/node_modules/npm/npmrc Completed in 0ms 6 timing config:load:builtin Completed in 0ms 7 timing config:load:cli Completed in 4ms 8 timing config:load:env Completed in 1ms 9 timing config:load:file:/home/mack/git/ptz-server/.npmrc Completed in 0ms 10 timing config:load:project Completed in 9ms 11 timing config:load:file:/home/mack/.npmrc Completed in 0ms 12 timing config:load:user Completed in 0ms 13 timing config:load:file:/home/mack/.nvm/versions/node/v16.20.2/etc/npmrc Completed in 0ms 14 timing config:load:global Completed in 0ms 15 timing config:load:validate Completed in 0ms 16 timing config:load:credentials Completed in 1ms 17 timing config:load:setEnvs Completed in 1ms 18 timing config:load Completed in 19ms 19 timing npm:load:configload Completed in 19ms 20 timing npm:load:mkdirpcache Completed in 1ms 21 timing npm:load:mkdirplogs Completed in 1ms 22 verbose title npm run build 23 verbose argv "run" "build" 24 timing npm:load:setTitle Completed in 1ms 25 timing config:load:flatten Completed in 3ms 26 timing npm:load:display Completed in 5ms 27 verbose logfile logs-max:10 dir:/home/mack/.npm/_logs 28 verbose logfile /home/mack/.npm/_logs/2024-03-29T22_45_43_712Z-debug-0.log 29 timing npm:load:logFile Completed in 4ms 30 timing npm:load:timers Completed in 1ms 31 timing npm:load:configScope Completed in 0ms 32 timing npm:load Completed in 33ms 33 silly logfile start cleaning logs, removing 1 files 34 silly logfile done cleaning log files 35 timing command:run Completed in 3487ms 36 verbose exit 0 37 timing npm Completed in 3528ms 38 info ok
Greetings... I'm not sure I understand your question. Is everything working now?
Greetings... I'm not sure I understand your question. Is everything working now?
I cannot get any web UI with serve -s buld. because there s no build/ .
This library is not a web server. There is no serve command.
This library is not a web server. There is no
servecommand.
I see... How can I use ?
npm run build to be end normally...no effects...