Closed selimbayhan closed 1 year ago
Have you compiled the backend?
If you haven't you can do it by typing
cd packages/backend
npm install
npm run build
Many thanks. After compiling backend error message changed.
node:internal/modules/cjs/loader:936 throw err; ^
Error: Cannot find module './globals' Require stack:
start
failed with error:
npm ERR! Error: command failed
npm ERR! in workspace: @fleet-management/backend@1.0.0
npm ERR! at location: /Users/selimbayhan/evcc/fleet-management/fleet-management-main/packages/backend Can you give some context about the environment that you are running fleet-management in? Things like the operating system you are using, version of node as well as version of npm will be very useful.
From a fresh copy of the fleet-management you should be able to start the backend with the following commands:
git clone git@github.com:ALLTERCO/fleet-management.git
cd fleet-management/
cd packages/backend/
npm install
npm run build
npm start
The default port is port 80. If that gives you an error you can either run the program with elevated permissions or change the port in the configuration file.
Many thanks with a fresh copy it is working now
I got the following error when I run start.sh. The error is on the backend side. I think there is no problem with frontend and BLE server side. Only on backend.
starting backend...
node:internal/modules/cjs/loader:936 throw err; ^
Error: Cannot find module '/Users/selimbayhan/evcc/fleet-management/fleet-management-main/packages/backend/dist/boot.js' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } npm ERR! Lifecycle script
start
failed with error: npm ERR! Error: command failed npm ERR! in workspace: @fleet-management/backend@1.0.0 npm ERR! at location: /Users/selimbayhan/evcc/fleet-management/fleet-management-main/packages/backend