Frequently asked questions

How to use node/npm/npx executables apart from Gradle when the Node.js distribution is downloaded by the plugin?

  • Create a NODEJS_HOME environment variable containing the real path set in the nodeInstallDirectory property.
  • Add the directory containing executables to the PATH environment variable:
    • On Unix-like O/S, add the $NODEJS_HOME/bin path.
    • On Windows O/S, add %NODEJS_HOME% path.

Applies only when the nodeDistributionProvided property is false.

How to use yarn executable apart from Gradle when the Yarn distribution is downloaded by the plugin?

  • Create a YARN_HOME environment variable containing the real path set in the yarnInstallDirectory property.
  • Add the directory containing executables to the PATH environment variable:
    • On Unix-like O/S, add the $YARN_HOME/bin path.
    • On Windows O/S, add %YARN_HOME%\bin path.

Applies only when the yarnDistributionProvided property is false.