Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not start Camera.ui #403

Open
lio00lio opened this issue Apr 5, 2023 · 2 comments
Open

Can not start Camera.ui #403

lio00lio opened this issue Apr 5, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@lio00lio
Copy link

lio00lio commented Apr 5, 2023

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
@lio00lio lio00lio added the bug Something isn't working label Apr 5, 2023
@StefCoders
Copy link

StefCoders commented Apr 19, 2023

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)
``

@LucasoDevDotTk
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants