Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use repopack in ubuntu 20.04 #146

Open
beishanyangjin opened this issue Oct 30, 2024 · 3 comments
Open

Unable to use repopack in ubuntu 20.04 #146

beishanyangjin opened this issue Oct 30, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@beishanyangjin
Copy link

Unable to use repopack in ubuntu 20.04
I install npm just by "sudo apt install npm", then either just run "npx repopack" or installed by npm then run "repopack", it get this error
(node:52216) UnhandledPromiseRejectionWarning: Error: Not supported
at /usr/local/lib/node_modules/repopack/bin/repopack.cjs:5:19
at Object. (/usr/local/lib/node_modules/repopack/bin/repopack.cjs:7:3)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
(node:52216) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:52216) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

@ItsCurstin
Copy link

ItsCurstin commented Nov 2, 2024

@beishanyangjin

I was able to run it on ubuntu 24.10 with no issues. I don't know if it is specific to 20.04.

Check your node version.
The version I use is 23.0.0.

Also I did install it repopack with pnpm but this shoulnt impact the run repopack command from failing

@yamadashy
Copy link
Owner

yamadashy commented Nov 3, 2024

Hi, @beishanyangjin !
Thank you for reporting.

The combination of Ubuntu 20.04 and Node.js 16 has passed our tests:

The issue might be caused by either a lower Node.js version or some environment-specific condition. Could you please provide more detailed information about your environment, such as:

  1. Your Node.js version (node --version)
  2. Your OS version (output of lsb_release -a)
  3. How you installed repomix (npm install -g, npx, etc.)

@yamadashy yamadashy added the bug Something isn't working label Nov 6, 2024
@plindman
Copy link

plindman commented Nov 8, 2024

Got as well this UnhandledPromiseRejectionWarning: Error: Not supported
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
node_modules/repopack/bin/repopack.cjs:5:19

node --version : v10.19.0 # this is the version apt install nodejs gave. Feels far off from v23 🤔
Description: Ubuntu 20.04.6 LTS
npm install -g repopack

UPDATE: upgrade to 24.04 and node v18. issue gone with the wind

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants