ether / etherpad-lite

Etherpad: A modern really-real-time collaborative document editor.
http://docs.etherpad.org/
Apache License 2.0
16.11k stars 2.8k forks source link

Etherpad-lite 2.0.1: start.bat problem in windows #6292

Closed elmatusov closed 2 months ago

elmatusov commented 3 months ago

Etherpad lite 2.0.1, Node.js v21.7.1, npm v10.5.0, esbuild 0.20.2, Windows 2022 server

When I ran start.bat in cmd as Administrator, I'm getting the following error:

`node:internal/modules/esm/resolve:845 throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), null); ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'esbuild' imported from C:\etherpalite\src\node_modules\tsx\dist\loader.mjs at packageResolve (node:internal/modules/esm/resolve:845:9) at moduleResolve (node:internal/modules/esm/resolve:918:18) at defaultResolve (node:internal/modules/esm/resolve:1148:11) at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:390:12) at ModuleLoader.resolve (node:internal/modules/esm/loader:359:25) at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:234:38) at ModuleWrap. (node:internal/modules/esm/module_job:87:39) at link (node:internal/modules/esm/module_job:86:36) { code: 'ERR_MODULE_NOT_FOUND' }

Node.js v21.7.1  ELIFECYCLE  Command failed with exit code 1.`    How can I fix it? Thanks!

SamTV12345 commented 2 months ago

Hi. Seems like the installation failed. You can also do this manually in two steps. First do npm install pnpm -g and then do pnpm i in the Etherpad root directory. This should install all dependencies. Then you simply need to do pnpm run prod and Etherpad should start.

elmatusov commented 2 months ago

Hi. Seems like the installation failed. You can also do this manually in two steps. First do npm install pnpm -g and then do pnpm i in the Etherpad root directory. This should install all dependencies. Then you simply need to do pnpm run prod and Etherpad should start.

Thanks A LOT! It solved the problem.

rkapl123 commented 1 month ago

Etherpad lite 2.0.3, Node.js v20.12.2, npm v10.5.0, Windows 10

Hi, after downloading the windows zip folder from https://etherpad.org/ ( which currently goes to https://objects.githubusercontent.com/github-production-release-asset-2e65be/1529160/63a79b77-c092-4732-aea9-8d688bb1e2c6?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240501%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240501T191726Z&X-Amz-Expires=300&X-Amz-Signature=f719109a1fa3b9aae069f7895eeba7a5af49fbee97750d0d27f85896126dd788&X-Amz-SignedHeaders=host&actor_id=7430763&key_id=0&repo_id=1529160&response-content-disposition=attachment%3B%20filename%3Detherpad-lite-win.zip&response-content-type=application%2Foctet-stream )

and installing node.js/pnpm, I had the exact same issue. Following the hint from @SamTV12345 solved the issue, but shouldn't the prebuilt etherpad run without issues?

SamTV12345 commented 1 month ago

Maybe we should get rid of the zip file. The installation is now really easy. Just delete the node_modules and run pnpm i. If you don't have pnpm just do npm install -g pnpm. You may require administrator privileges.