eoc icon indicating copy to clipboard operation
eoc copied to clipboard

Can't install eoc using commands from README

Open volodya-lombrozo opened this issue 6 months ago • 4 comments

Check this out:

➜  hello npm uninstall eolang

up to date in 308ms
➜  hello npm uninstall -g eolang

removed 71 packages in 420ms
➜  hello
➜  hello
➜  hello eoc --version
zsh: command not found: eoc
➜  hello npm install -g [email protected]
npm error code 1
npm error path /usr/local/lib/node_modules/eolang/node_modules/node
npm error command failed
npm error command sh -c node installArchSpecificPackage
npm error (node:23883) [DEP0190] DeprecationWarning: Passing args to a child process with shell option true can lead to security vulnerabilities, as the arguments are not escaped, only concatenated.
npm error (Use `node --trace-deprecation ...` to show where the warning was created)
npm error npm error code ETARGET
npm error npm error notarget No matching version found for [email protected].
npm error npm error notarget In most cases you or one of your dependencies are requesting
npm error npm error notarget a package version that doesn't exist.
npm error npm error A complete log of this run can be found in: /Users/lombrozo/.npm/_logs/2025-10-09T07_59_53_661Z-debug-0.log
npm error node:internal/modules/cjs/loader:1423
npm error   throw err;
npm error   ^
npm error
npm error Error: Cannot find module 'node-darwin-x64/package.json'
npm error Require stack:
npm error - /usr/local/lib/node_modules/eolang/node_modules/node/installArchSpecificPackage.js
npm error     at Module._resolveFilename (node:internal/modules/cjs/loader:1420:15)
npm error     at require.resolve (node:internal/modules/helpers:163:19)
npm error     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/eolang/node_modules/node-bin-setup/index.js:20:27)
npm error     at ChildProcess.emit (node:events:508:28)
npm error     at maybeClose (node:internal/child_process:1101:16)
npm error     at ChildProcess._handle.onexit (node:internal/child_process:305:5) {
npm error   code: 'MODULE_NOT_FOUND',
npm error   requireStack: [
npm error     '/usr/local/lib/node_modules/eolang/node_modules/node/installArchSpecificPackage.js'
npm error   ]
npm error }
npm error
npm error Node.js v24.9.0


In other words, I do npm install -g [email protected] and get the error. What do I do wrong?

volodya-lombrozo avatar Oct 09 '25 08:10 volodya-lombrozo

@yegor256 @maxonfjvipon could you help?

volodya-lombrozo avatar Oct 09 '25 08:10 volodya-lombrozo

@volodya-lombrozo the same error for me. It didn't happen earlier, when I've had Node 23. Now it's 24.

yegor256 avatar Oct 09 '25 08:10 yegor256

@volodya-lombrozo Hey there! 🎉 Nice catch on that bug report – you've just earned yourself +12 points as our policy rewards! Bug hunting like this is exactly what keeps our project solid and improving. If you spot anything else that doesn't look quite right, don't hesitate to report it – every accepted bug gets you those same 12 points! Your running balance is now +211, and don't forget to peek at your Zerocracy balance too.

0crat avatar Oct 10 '25 08:10 0crat

@yegor256 @volodya-lombrozo With Node (v24.9.0) and npm (v11.6.2) [email protected] and [email protected] works fine!

literally-bug-creator avatar Oct 19 '25 12:10 literally-bug-creator