seydx / camera.ui

NVR like user Interface for RTSP capable cameras

Home Page:https://github.com/seydx/camera.ui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can not start Camera.ui

lio00lio opened this issue · comments

Describe the bug
I had installed a new container in proxmox for install camera.ui
To Reproduce
run the command camera.ui

Expected behavior
A clear and concise description of what you expected to happen.

Logs
`/usr/local/lib/node_modules/camera.ui/bin/camera.ui.js:5
import fs from 'fs-extra';
^^

SyntaxError: Unexpected identifier
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)`
Screenshots
image

Environment

  • Node.js Version: v10.19.0
  • Camera UI Version: v1.1.17
  • Operating System: ubuntu 20.04
  • Browser: NA/NA

I cant start aswell. I get this error
``

file:///usr/local/lib/node_modules/camera.ui/src/services/logger/logger.service.js:91
if (logger?.log) {
^

SyntaxError: Unexpected token '.'
at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
``

I recently had this issue as well, and I found out that this is because of an older installation of node and npm.

How to fix:

  1. Install the stable version of node: sudo snap install node --classic --stable
  2. Install npm (version greater than 16): sudo npm install n -g sudo n stable

This should fix the issue.

🎉 A new version of camera.ui

A new version of camera.ui is currently under active development. An initial alpha/beta release and previews are coming soon. Stay tuned for exciting updates: #448 .

This version will no longer be developed / fixed. The new version contains many novelties and fixes (most important is for HKSV recording).