fluidattacks / makes

A software supply chain framework powered by Nix.
https://makes.fluidattacks.com/
MIT License
420 stars 42 forks source link

Error and Warnings Encountered in makeNodeJsLock Script Execution #1317

Closed mandresuri closed 3 months ago

mandresuri commented 3 months ago

When running the makeNodeJsLock script with the following command:

m github:fluidattacks/makes@24.02 /utils/makeNodeJsLock 21 "${package_json_dir}" 2

The following warnings are produced:

npm WARN invalid config lockfile-version="" set in command line options npm WARN invalid config Must be one of: null, 1, 2, 3

Additionally, when removing the last parameter:

m github:fluidattacks/makes@24.02 /utils/makeNodeJsLock 21 "${package_json_dir}"

The following error is encountered:

make-node-js-lock: line 79: 3: unbound variable

This issue needs to be addressed to ensure the correct execution of the script.