[Gradle, JS] Node into PATH during installing of dependencies
^KT-37895 fixed
This commit is contained in:
committed by
TeamCityServer
parent
065a5d98fb
commit
e2adf9793c
+7
-1
@@ -39,11 +39,17 @@ abstract class YarnBasics : NpmApi {
|
|||||||
val arguments = args +
|
val arguments = args +
|
||||||
if (logger.isDebugEnabled) "--verbose" else ""
|
if (logger.isDebugEnabled) "--verbose" else ""
|
||||||
|
|
||||||
|
val nodeExecutable = nodeJs.requireConfigured().nodeExecutable
|
||||||
|
exec.environment(
|
||||||
|
"PATH",
|
||||||
|
"$nodeExecutable${File.pathSeparator}${System.getenv("PATH")}"
|
||||||
|
)
|
||||||
|
|
||||||
if (isStandalone) {
|
if (isStandalone) {
|
||||||
exec.executable = command
|
exec.executable = command
|
||||||
exec.args = arguments
|
exec.args = arguments
|
||||||
} else {
|
} else {
|
||||||
exec.executable = nodeJs.requireConfigured().nodeExecutable
|
exec.executable = nodeExecutable
|
||||||
exec.args = listOf(command) + arguments
|
exec.args = listOf(command) + arguments
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user