angular / angular

Deliver web apps with confidence 🚀

Home Page:https://angular.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docs: is not recognized as an internal or external command, operable program or batch file

fendypurnomo opened this issue · comments

Describe the problem that you experienced

D:\Applications\docs\angular.io\angular>yarn docs
yarn run v1.22.19
$ [[ -n $CI ]] && echo 'Cannot run this yarn script on CI' && exit 1 || yarn bazel run //adev:serve --fast_adev
'[[' is not recognized as an internal or external command,
operable program or batch file.
$ D:\Applications\docs\angular.io\angular\node_modules\.bin\bazel run //adev:serve --fast_adev
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
INFO: Analyzed target //adev:serve (1319 packages loaded, 82779 targets configured).
INFO: Found 1 target...
ERROR: D:/applications/docs/angular.io/angular/adev/src/content/tutorials/homepage/BUILD.bazel:12:20: Action adev/src/content/tutorials/homepage/homepage failed: (Exit 1): playground.bat failed: error executing command bazel-out\x64_windows-opt-exec-2B5CBBC6\bin\external\npm\@angular\docs\pipeline\playground.bat adev/src/content/tutorials/homepage external/npm/@angular/docs/pipeline/tutorials/common ... (remaining 2 arguments skipped)
'""' is not recognized as an internal or external command,
operable program or batch file.
ERROR: D:/applications/docs/angular.io/angular/adev/src/content/tutorials/playground/BUILD.bazel:10:20: Action adev/src/content/tutorials/playground/playground failed: (Exit 1): playground.bat failed: error executing command bazel-out\x64_windows-opt-exec-2B5CBBC6\bin\external\npm\@angular\docs\pipeline\playground.bat adev/src/content/tutorials/playground external/npm/@angular/docs/pipeline/tutorials/common ... (remaining 2 arguments skipped)
'""' is not recognized as an internal or external command,
operable program or batch file.
ERROR: D:/applications/docs/angular.io/angular/adev/src/content/tutorials/first-app/BUILD.bazel:21:18: Action adev/src/content/tutorials/first-app/first-app failed: (Exit 1): tutorial.bat failed: error executing command bazel-out\x64_windows-opt-exec-2B5CBBC6\bin\external\npm\@angular\docs\pipeline\tutorial.bat adev/src/content/tutorials/first-app external/npm/@angular/docs/pipeline/tutorials/common ... (remaining 2 arguments skipped)
'""' is not recognized as an internal or external command,
operable program or batch file.
ERROR: D:/applications/docs/angular.io/angular/packages/platform-server/init/BUILD.bazel:20:8: Bundling Javascript ../npm/node_modules/domino/lib/index.js [esbuild] failed: (Exit 1): _bundled_domino_esbuild_launcher.bat failed: error executing command bazel-out\x64_windows-opt-exec-2B5CBBC6-ST-2e5f3376adb5\bin\packages\platform-server\init\_bundled_domino_esbuild_launcher.bat ... (remaining 3 arguments skipped)
'""' is not recognized as an internal or external command,
operable program or batch file.
Target //adev:serve failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 1020.285s, Critical Path: 1.58s
INFO: 1396 processes: 1112 internal, 284 local.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Enter the URL of the topic with the problem

No response

Describe what you were looking for in the documentation

I'm cloning angular repo and i want to serve locally, but when i run command "yarn docs", i got an error

Describe the actions that led you to experience the problem

No response

Describe what you want to experience that would fix the problem

No response

Add a screenshot if that helps illustrate the problem

No response

If this problem caused an exception or error, please paste it here

No response

If the problem is browser-specific, please specify the device, OS, browser, and version

No response

Provide any additional information here in as much as detail as you can

No response

Hi !
In which kind of command line are you running the script ?

I am running command line in the command propmt as administrator, windows 10

You need to run this script in a bash compatible command line.

Which kind a bash compatible with there script?
In windows 10, should i use WSL or can i use git bash?