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
yarn.cmd contains a windows launcher while yarn contains a Unix launcher.
So, running scala.sys.process.Process("yarn").! does not work, it should be scala.sys.process.Process("yarn.cmd").!
scala> scala.sys.process.Process("yarn").!
java.io.IOException: Cannot run program "yarn": CreateProcess error=2, The system cannot find the file specified
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1140)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1074)
at scala.sys.process.ProcessBuilderImpl$Simple.run(ProcessBuilderImpl.scala:85)
at scala.sys.process.ProcessBuilderImpl$AbstractBuilder.run(ProcessBuilderImpl.scala:117)
at scala.sys.process.ProcessBuilderImpl$AbstractBuilder.$bang(ProcessBuilderImpl.scala:144)
... 37 elided
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.base/java.lang.ProcessImpl.create(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:500)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:159)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1111)
... 41 more
scala> scala.sys.process.Process("yarn.cmd").!
yarn install v1.22.19
info No lockfile found.
$ :; (node ./preinstall.js > /dev/null 2>&1 || true)
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
[5/5] Building fresh packages...
error Could not write file "C:\\Program Files (x86)\\Yarn\\yarn-error.log": "EPERM: operation not permitted, open 'C:\\Program Files (x86)\\Yarn\\yarn-error.log'"
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
error An unexpected error occurred: "EPERM: operation not permitted, mkdir 'C:\\Program Files (x86)\\Yarn\\node_modules'".
val res1: Int = 1
So, chocolatey seems to install yarn on
C:\Program Files (x86)\Yarn\bin
, which contains the following files:yarn.cmd
contains a windows launcher whileyarn
contains a Unix launcher.So, running
scala.sys.process.Process("yarn").!
does not work, it should bescala.sys.process.Process("yarn.cmd").!
As such
docusaurusCreateSite
is failing inmdoc/mdoc-sbt/src/main/scala/mdoc/DocusaurusPlugin.scala
Lines 124 to 125 in 26a176c
The text was updated successfully, but these errors were encountered: