Skip to content

Commit 4579200

Browse files
MrJithilatscott
authored andcommitted
docs: add a windows known issue (angular#42028)
Add a known issue of windows angular build. PR Close angular#42028
1 parent 2dfa010 commit 4579200

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/BAZEL.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ Usually there is a single item (or multiple items of the same kind) where the ov
256256

257257
### Windows
258258

259+
#### bazel run
259260
If you see the following error:
260261

261262
```
@@ -277,6 +278,25 @@ Require stack:
277278

278279
e.g: `yarn bazel test packages/core/test/bundling/forms:symbol_test --config=ivy`
279280

281+
#### mkdir missing
282+
If you see the following error::
283+
```
284+
285+
ERROR: An error occurred during the fetch of repository 'npm':
286+
Traceback (most recent call last):
287+
File "C:/users/anusername/_bazel_anusername/idexbm2i/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl", line 618, column 15, in _yarn_install_impl
288+
_copy_file(repository_ctx, repository_ctx.attr.package_json)
289+
File "C:/users/anusername/_bazel_anusername/idexbm2i/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl", line 345, column 17, in _copy_file
290+
fail("mkdir -p %s failed: \nSTDOUT:\n%s\nSTDERR:\n%s" % (dirname, result.stdout, result.stderr))
291+
Error in fail: mkdir -p _ failed:
292+
293+
```
294+
The `msys64` library and associated tools (like `mkdir`) are required to build Angular.
295+
296+
Make sure you have `C:\msys64\usr\bin` in the "system" `PATH` rather than the "user" `PATH`.
297+
298+
After that, a `git clean -xfd`, `yarn`, and `node scripts\build\build-packages-dist.js` should resolve this issue.
299+
280300
### Xcode
281301

282302
If you see the following error:

0 commit comments

Comments
 (0)