-
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
Couldn't generate the package-lock.json file for certain projects #62
Comments
Thanks for reporting, @jadoonf! Bug replicated. Working on it. |
Let's analyze one repo at a time. n8nIn this repo, there is a This leaves the Still, we can see how the program fails because of reaching the deadline (1 minute at the time of writing). My first guess is that the preinstall runs the script on another thread (unsupported by facts at this time), so the exit code 1 is not picked up by the thread that spawned I will investigate if my conjecture is right. My proposalAssuming my analysis is correct, here is how I would approach a solution.
I recognize this approach to be very naïve and I am sure it can be improved by bringing it to the attention of @leodido. |
Let's move to the other repo node-sdkSimilarly to Hence the cli fails. My proposalSame as the previous comment, replacing |
For If it assumes that a tool is installed globally and then it runs it via a preinstall (or whatever) script, then it's semantically broken, and even |
Describe the bug
Facing the below error when scanning certain project repos (e.g. tier and n8n)
Error: couldn't generate the package-lock.json file
for certain projectsSteps to reproduce the behavior
lstn in
inside the project rootError: couldn't generate the package-lock.json file
Environment
Expected vs actual behavior
Currently, if you run
lstn to tier --json
it works.Running
lstn in
for a project'spackage.json
should return the same output as usinglstn to <package>
.The text was updated successfully, but these errors were encountered: