on 11-27-2023 2:52 AM
Hi there,
When running CI/CD for my test CAP Build, I'm getting the following error:
[2023-11-27T02:41:38.133Z] ----------------------------------------------------------
[2023-11-27T02:41:38.133Z] --- An error occurred in the library step: dockerExecute
[2023-11-27T02:41:38.133Z] ----------------------------------------------------------
[2023-11-27T02:41:38.133Z]
[2023-11-27T02:41:38.133Z] The following parameters were available to the step:
[2023-11-27T02:41:38.133Z] ***
[2023-11-27T02:41:38.133Z] *** to show step parameters, set verbose:true in general pipeline configuration
[2023-11-27T02:41:38.133Z] *** WARNING: this may reveal sensitive information. ***
[2023-11-27T02:41:38.133Z] ***
[2023-11-27T02:41:38.133Z]
[2023-11-27T02:41:38.133Z] The error was:
[2023-11-27T02:41:38.133Z] ***
[2023-11-27T02:41:38.133Z] hudson.AbortException: [npmExecuteScripts] Step execution failed (category: build). Error: running command 'npm' failed: cmd.Run() failed: exit status 1
[2023-11-27T02:41:38.133Z] ***
[2023-11-27T02:41:38.133Z] <br>
Relevant mta.yaml npm build as follows:
Manually running "npm run test" in VSCode it's all good.
Not sure where it went wrong? Any help appreciated thanks!
Hi,
It looks like there's a problem with running the command "npm config get registry", which happens before your test script is called. "npm config" apparently does not support workspaces. See documentation here: https://docs.npmjs.com/cli/v9/commands/npm-config#:~:text=Note%3A%20This%20command%20is%20unaware%20.... Hence the "ENOWORKSPACES" and "This command does not support workspaces." errors.
From looking online I see that it may help to add a file to your repository called .npmrc and state in there what the registry should be (My source: https://github.com/vercel/turbo/issues/4183#issuecomment-1468147866). The contents of the file could be "registry=https://registry.npmjs.org/" (without the quotation marks).
Could you please try that and see if it helps?
Best regards,
Linda Siebert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
11 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.