Skip to content
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 and Warnings Encountered in makeNodeJsLock Script Execution #1317

Closed
mandresuri opened this issue Apr 12, 2024 · 0 comments
Closed

Error and Warnings Encountered in makeNodeJsLock Script Execution #1317

mandresuri opened this issue Apr 12, 2024 · 0 comments
Assignees

Comments

@mandresuri
Copy link
Contributor

When running the makeNodeJsLock script with the following command:

m github:fluidattacks/[email protected] /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/[email protected] /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.

@rohaquinlop rohaquinlop self-assigned this Apr 12, 2024
rohaquinlop added a commit to rohaquinlop/makes that referenced this issue Apr 12, 2024
- add `--package-lock-only` to `npm install` command
- fix default value for `lockfile_version` in `entrypoint.sh`

Signed-off-by: Robin Quintero <[email protected]>
rohaquinlop added a commit to rohaquinlop/makes that referenced this issue Apr 12, 2024
- add `--package-lock-only` to `npm install` command
- fix default value for `lockfile_version` in `entrypoint.sh`

Signed-off-by: Robin Quintero <[email protected]>
jpverde added a commit that referenced this issue Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants