mirror of
https://github.com/plankanban/planka.git
synced 2026-02-25 11:21:03 +03:00
Error when running "npm run build" (non-docker install) #264
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gabrielmajosi on GitHub (Dec 18, 2022).
Upon running
npm run buildit starts building for a shortwhile but then errors out. This is the resulting log.I am running this on Debian 11 Bullseye, 64 bit, in a container.
NodeJS version 19.2.0
@meltyshev commented on GitHub (Dec 18, 2022):
Hi! Did you run the command
npm iat the root of the project? Or you can try to build the client with the commandDISABLE_ESLINT_PLUGIN=true npm run build.@gabrielmajosi commented on GitHub (Dec 26, 2022):
Finally got it working! The instructions on the GitHub readme are incorrect, as you need to run
npm installin the root directory, thencd clientto runnpm run build. Also, copying the client folder is also incorrect as it copies the literal folder and not the contents. I can make a pull request to fix these issues if desired.@meltyshev commented on GitHub (Dec 29, 2022):
You are right 🙈 It seems
npm istopped working after5381d45e50.There are 2 solutions here, either just write that
npm ihas to be run in the root folder, or as done in the Dockerfile withDISABLE_ESLINT_PLUGIN=true npm run build. In the first case, it will take more space on the server due to the dev dependencies being installed as well. In the second case it's a bit more complicated and strange looking, but it takes less space. Later I'll try to put the whole process into one npm script to build the frontend and copy the necessary files to the server folder (npm i prepareor something like that).Feel free to make PR with corrections, it will be very welcome 🙏