Closed freeclimbing closed 1 year ago
hello i change the Debian yarnpkg
in project/ReactBuildHelper.scala
but the following errors appears
info] Resolving key references (15321 settings) ...
[info] Set current project to root (in build file:/C:/Users/Toshiba/Desktop/silk-develop/)
[info] Set current project to Silk Workbench (in build file:/C:/Users/Toshiba/Desktop/silk-develop/)
java.lang.Error: Executing external process 'where.exe yarn.cmd' in working directory C:\Users\Toshiba\Desktop\silk-develop failed with error code 1 and error output: INFO: Could not find files for the given pattern(s).
at ReactBuildHelper$.process(ReactBuildHelper.scala:93)
at ReactBuildHelper$.process(ReactBuildHelper.scala:105)
at ReactBuildHelper$.
Maybe you are mixing up your operating system? From the path structure in your error message i assume you are using Windows (good luck with that) - that's far from Debian.
Please check the details on your error message again, maybe you do not have yarn installed!?
Hello,
Please help me
I change this code
val yarnCommand: String = sys.props.get("os.name") match { case Some(os) if os.toLowerCase.contains("win") => // On windows, we need to provide the path of the yarn script manually process("where.exe" :: "yarn.cmd" :: Nil).trim case _ => "yarn" }
to this code
val yarnCommand: String = sys.props.get("os.name") match { case Some(os) if os.toLowerCase.contains("win") => // On windows, we need to provide the path of the yarn script manually process("where.exe" :: "yarn.cmd" :: Nil).trim case _ => /*
but it is same problem of error :
[error] (reactComponents/*:checkJsBuildTools) java.lang.Error: Executing external process 'where.exe yarn.cmd' in working directory C:\silk-develop failed with error code 1 and error output: INFO: Could not find files for the given pattern(s).
[error] (core/compile:compileIncremental) java.io.IOException: Cannot run program "javac" (in directory "C:\silk-develop"): CreateProcess error=2, The system cannot find the file specified
[error] Total time: 28 s, completed May 17, 2019 2:48:51 PM
Please help me :(
I think your solution path is correct. For the next error I would point out: https://stackoverflow.com/questions/18455732/play-framework-cant-find-javac.
Yet I did not encounter this before, so I'm just guessing this is a setup problem.
In Debian,
yarn
is renamed toyarnpkg
. Due to this,sbt "project workbench" run
will not find the build tool.This can easily be fixed by checking for the Debian
yarnpkg
inproject/ReactBuildHelper.scala
:Change
to