-
Notifications
You must be signed in to change notification settings - Fork 1
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
Error: subprocess terminated with status code exit status 127 #102
Comments
/lstn_0.0.2_linux_arm64/node-sdk # ../lstn
Running without a configuration file
Error: couldn't find the npm executable in any way |
This issue has been analyzed in #62 already. |
I've just tested this out against the
The problem is likely to depend on the different npm version. |
Thank you! This is helpful. Resolved. |
Just for future reference. We could generate the package lock with arborist as npm does and forget about npm completely. const Arborist = require('@npmcli/arborist')
const arb = new Arborist({
// options object
// where we're doing stuff. defaults to cwd.
path: '/path/to/the/folder/containing-package-lock-json',
// url to the default registry. defaults to npm's default registry
registry: 'https://registry.npmjs.org/',
})
// Make the idealTree be the thing that's on disk
arb.reify({
// write the lockfile(s) back to disk, and package.json with any updates
// defaults to 'true'
save: true,
}).then(() => {
// node modules has been written to match the idealTree
}) |
I suggest to package the node_modules for using this in the command as a single js file using vercel's ncc https://github.com/vercel/ncc |
I'm gonna investigate this path further as we discussed privately, thank you! |
This issue inspired the work I've done at https://github.com/listendev/erborist. What's It's a CLI that lets you generate a
The plans are to integrate Should any OS/architecture tuple be not supported by What's missing?
|
Syncing up on this: The issue with tier was resolved by downgrading to However, the persisting issue is with n8n, where running @leodido wondering if this going to be resolved through arborist or there is some other issue? |
Yes. Will write a detailed write up later today or tomorrow. |
@jadoonf the plan is to have a way to generate Let's consider for example the The low-hanging fruit would be making Since there could be many other ways that the above command doesn't work, the ideal solution would be to have a tool that behaves like
This would make Also, this approach would make That's why I'm working on https://github.com/listendev/erborist. The plan going forward (after the low-hanging fruit fix) is to embed Whether we will fall back to the current implementation (ie., using |
Ok, PR #128 should fix the issue tierrun/node-sdk while using other The issues with n8n-io/n8n have a different nature. I'm on it investigating if there's a low-hanging fruit here before reverting to work on |
Describe the bug
Scanning certain projects (e.g. tier, n8n) using
lstn in
returns an error code 127.Steps to reproduce the behavior
lstn in
(inside project root)Error: subprocess terminated with status code exit status 127
Expected vs actual behavior
Should provide verdicts. For context, scanning for the npm package itself (e.g.
lstn to tier 5.1.2
) works.Logs
Error: subprocess terminated with status code exit status 127
The text was updated successfully, but these errors were encountered: