Why is this Github action code failing? npm insta...
# ask-stanley-ai
t
Why is this Github action code failing? npm install -g --acceptSuiteCloudSDKLicense @oracle/suitecloud-cli shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} env: JAVA_HOME: /opt/actions-runner/_work/_tool/Java_Oracle_jdk/17/x64 JAVA_HOME_17_X64: /opt/actions-runner/_work/_tool/Java_Oracle_jdk/17/x64 changed 58 packages in 10s 15 packages are looking for funding run
npm fund
for details Run echo * | base64 -d > /tmp/private-key.pem echo * | base64 -d > /tmp/private-key.pem shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} env: JAVA_HOME: /opt/actions-runner/_work/_tool/Java_Oracle_jdk/17/x64 JAVA_HOME_17_X64: /opt/actions-runner/_work/_tool/Java_Oracle_jdk/17/x64 Run ./node_modules/.bin/suitecloud accountsetupci --account * --authid * --certificateid * --privatekeypath /tmp/private-key.pem ./node_modules/.bin/suitecloud accountsetupci --account * --authid * --certificateid * --privatekeypath /tmp/private-key.pem shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} env: JAVA_HOME: /opt/actions-runner/_work/_tool/Java_Oracle_jdk/17/x64 JAVA_HOME_17_X64: /opt/actions-runner/_work/_tool/Java_Oracle_jdk/17/x64 /opt/actions-runner/_work/_temp/34c20b99-4da0-46d9-9c63-094037dfbe4f.sh: line 1: ./node_modules/.bin/suitecloud: No such file or directory Error: Process completed with exit code 127.
c
AI generated answer (using internal Slack threads):
The Github action code is failing because the SuiteCloud CLI command is not found in the specified path
./node_modules/.bin/suitecloud
. This error typically occurs when the SuiteCloud CLI is not installed correctly or the path to the CLI is incorrect. The command
npm install -g --acceptSuiteCloudSDKLicense @oracle/suitecloud-cli
is used to install the SuiteCloud CLI globally. However, the error message suggests that the CLI is not found in the local
node_modules
directory. To resolve this issue, you can try the following steps: 1. Remove the
-g
flag from the
npm install
command to install the SuiteCloud CLI locally in your project. The command should be
npm install --acceptSuiteCloudSDKLicense @oracle/suitecloud-cli
. 2. Ensure that the path to the SuiteCloud CLI is correct. If the CLI is installed locally, the path should be
./node_modules/.bin/suitecloud
. If the CLI is installed globally, you may need to specify the full path to the CLI in your system. 3. Check if there are any issues with your environment setup, such as the
JAVA_HOME
variable. The SuiteCloud CLI requires Java, so make sure that Java is installed correctly and the
JAVA_HOME
variable is set to the correct path. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.81560117
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.814791739
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.803618312
Please provide your feedback on this answer.