mirror of
https://github.com/jehna/humanify.git
synced 2026-04-27 17:45:58 +03:00
[GH-ISSUE #23] error "sh: line 1: tsx: command not found" #19
Labels
No labels
bug
enhancement
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/humanify#19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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 @AGenchev on GitHub (Jul 31, 2024).
Original GitHub issue: https://github.com/jehna/humanify/issues/23
I cloned the repo, installed npm, performed npm install and used this stanza to test it:
npm start -- --local -o deobfuscated.js obfuscated-file.jsunfortunately it cannot find sth called tsx.
What didn't work:
npm install --save-dev ts-node typescript
npm install tsx
I'm not much familiar w node.js.
@jehna commented on GitHub (Jul 31, 2024):
Did you run just plain
npm install? Please check the readme for getting started instructions@AGenchev commented on GitHub (Jul 31, 2024):
yes, I did npm install.
didn't install conda, but it is for python and I'll use pip (if I get there).
It seems like problem with node.
@AGenchev commented on GitHub (Jul 31, 2024):
but, to have done it all, I installed conda and ran:
conda env create -f environment.yamlThe result is "Could not solve for environment specs".
Of course, there are tons of complains like:
@0xdevalias commented on GitHub (Aug 1, 2024):
tsxis in thepackage.jsondependencies, so it should be installed properly with anpm install:github.com/jehna/humanify@002fd68d10/package.json (L24)As a test, I added a new
which-tsxscript:And ran it like this (on macOS):
I would expect yours should show something similar; and if not, then perhaps you have some issues with how your environment
PATH/ node / similar is setup?What OS / node version / etc are you running?
@AGenchev commented on GitHub (Aug 1, 2024):
it seems your changes are not in the main branch, because git pull says it's up to date. I edited manually package.json to add ""which-tsx": "which tsx"".
Then
"npm run which-tsxreturns empty line.
OS: Arch Linux;
npm --version10.8.2
node --versionv22.5.1
conda --versionconda 24.5.0
Everything is downloaded/installed yesterday, latest versions available for my Linux. I guess there are specific packages for Mac OS which install properly, but on x86_64 there are other versions (especially these which conda can't find). Also I guess, on my computer npm is somewhat broken and doesn't install the packages which are required.
@0xdevalias commented on GitHub (Aug 2, 2024):
@AGenchev I made the changes locally as a PoC/debug step; they were never intended to be comitted/pushed anywhere.
tsxhas nothing to do with python/conda; it's purely a node thing.It seems like that might be the case, and would be the area I would be looking to debug things further. It might be worth starting by looking of the
tsxpackage is properly installed in the./node_modules/directory afternpm install. And also maybe check what paths are included in yourPATHenv.Beyond that, might be a bit beyond the type of support that can easily be provided on this repo, as it sounds like it may be more of an environment setup issue rather than an issue with this project.
@AGenchev commented on GitHub (Aug 2, 2024):
Thanks, I was able to resolve this problem, which likely is related to the node version incompatibility:
So this problem is solved.
conda env create -f environment.yamlstill fails, but this is not the topic here, so I close this.
Thank you all for assisting with this issue.