MJinH opened a new issue, #48: URL: https://github.com/apache/age-viewer/issues/48
In app folder of age-viewer desktop app, the current scripts in package.json file doesn't support for Windows environment, so the commands need to be modified like below on Windows. ``` "clean": "New-Item -Force -ItemType directory -Path ./resources/backend/build && New-Item -Force -ItemType directory -Path ./resources/frontend/build && rm -r -fo ./resources/backend/build/ && rm -r -fo ./resources/frontend/build/", "prebuild": "cd .. && npm run build-back && npm run build-front", "prebundle": "Copy-Item -r -fo ../backend/build ./resources/backend && Copy-Item -r -fo ../frontend/build ./resources/frontend && Copy-Item -r -fo ../backend/sql ./resources/backend" ``` new-item is a powershell command and will only work using powershell. If it shows the following error ```'new-item' is not recognized as an internal or external command, operable program or batch file.``` via powershell, you need to run each command sequentially. Additionally, Electron needs to be installed as a global dependency on Windows environment. The following commands will install Electron package globally. ``` npm install -g [email protected] npm install -g electron-builder ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
