traccar-web 6.4

12053 months ago

Hi
I used vscode to open traccar-web version 6.4, my question is, how do I compile this file and how do I get this file to run on my local windows machine if I use npm install to get an error.
Thanks

Track-trace3 months ago

And then you dont mention what the error exactly is ?

Did you try this ?

https://www.traccar.org/build/

12053 months ago

This is what I saw in the error log, I get these error messages by executing npm install in the legacy folder:

verbose stack Error: command failed
281 verbose stack     at ChildProcess.<anonymous> (F:\soft\node\node_modules\npm\node_modules\@npmcli\promise-spawn\index.js:64:27)
281 verbose stack     at ChildProcess.emit (node:events:390:28)
281 verbose stack     at maybeClose (node:internal/child_process:1064:16)
281 verbose stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
282 verbose cwd G:\traccar\traccarweb64\traccar-web-6.4\legacy
283 verbose Windows_NT 10.0.19045
284 verbose argv "F:\\soft\\node\\node.exe" "F:\\soft\\node\\node_modules\\npm\\bin\\npm-cli.js" "install"
285 verbose node v16.11.1
286 verbose npm  v8.0.0
287 error code 1
288 error path G:\traccar\traccarweb64\traccar-web-6.4\legacy
289 error command failed
290 error command C:\Windows\system32\cmd.exe /d /s /c /bin/bash -c 'mkdir -p web/lib/{ol,ol-layerswitcher,proj4,extjs} && cp node_modules/openlayers-dist/{ol.js,ol.css} web/lib/ol/ && cp node_modules/ol-layerswitcher/dist/{ol-layerswitcher.js,ol-layerswitcher.css} web/lib/ol-layerswitcher/ && cp node_modules/proj4/dist/proj4.js web/lib/proj4/ && cp node_modules/extjs-gpl/build/ext-all.js web/lib/extjs/ && mkdir -p web/lib/extjs/classic && cp -r node_modules/extjs-gpl/build/classic/locale web/lib/extjs/classic/locale && cp -r node_modules/extjs-gpl/build/classic/theme-triton web/lib/extjs/classic/theme-triton && mkdir -p web/lib/extjs/packages/charts && cp -r node_modules/extjs-gpl/build/packages/charts/classic web/lib/extjs/packages/charts/classic'
291 verbose exit 1

I know the operation for the modern folder is to go into the modern folder and execute npm install, but for legacy I don't know what to do
What should I do in windows
Thanks

Anton Tananaev3 months ago

The command is intended to be executed in bash.

12053 months ago

I'm sorry, I'm not sure I know what you mean, I executed this command from a terminal in vscode Or should I execute a command in the cmd window of windows?

Thank you for your help.

12053 months ago

I know what to do. Thank you so much for your help, okay