You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clone repo (MacBook Pro, Apple M2 Max, Ventura 13.6)
Run ./gradlew build
Fails
Error message:
> Task :packageNodeJsDistributableWithNCC FAILED
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':packageNodeJsDistributableWithNCC' (type 'NodeTask').
- In plugin 'com.github.node-gradle.node' type 'com.github.gradle.node.task.NodeTask' property '$1' specifies directory '/Users/code/set-aws-sso-credentials/build/js/node_modules' which doesn't exist.
Reason: An input file was expected to be present but it doesn't exist.
Possible solutions:
1. Make sure the directory exists before the task is called.
2. Make sure that the task which produces the directory is declared as an input.
For more information, please refer to https://docs.gradle.org/8.2.1/userguide/validation_problems.html#input_file_does_not_exist in the Gradle documentation.
Manual Fix:
Used IntelliJ to run the nodejs / kotlinNpmInstall gradle task.
That created the missing build/js/node_modules directory. ./gradlew build succeeded after that
The text was updated successfully, but these errors were encountered:
Reproduction:
./gradlew build
Error message:
More system information:
Manual Fix:
Used IntelliJ to run the
nodejs / kotlinNpmInstall
gradle task.That created the missing
build/js/node_modules
directory../gradlew build
succeeded after thatThe text was updated successfully, but these errors were encountered: