Created
August 19, 2020 09:05
-
-
Save lukasholzer/0d44cc71b2f0eb6f1ef63232b91cf5f7 to your computer and use it in GitHub Desktop.
Windows Angular Comopnents failing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows PowerShell | |
Copyright (C) Microsoft Corporation. All rights reserved. | |
Try the new cross-platform PowerShell https://aka.ms/pscore6 | |
PS C:\Users\labuser> ls | |
Directory: C:\Users\labuser | |
Mode LastWriteTime Length Name | |
---- ------------- ------ ---- | |
d----- 8/19/2020 8:38 AM .vscode | |
d-r--- 1/16/2020 12:22 PM 3D Objects | |
d-r--- 1/16/2020 12:22 PM Contacts | |
d-r--- 1/16/2020 12:33 PM Desktop | |
d-r--- 1/16/2020 12:22 PM Documents | |
d-r--- 1/16/2020 12:22 PM Downloads | |
d-r--- 1/16/2020 12:22 PM Favorites | |
d-r--- 1/16/2020 12:22 PM Links | |
d-r--- 1/16/2020 12:22 PM Music | |
d-r--- 8/19/2020 9:29 AM OneDrive | |
d-r--- 1/16/2020 12:24 PM Pictures | |
d----- 1/16/2020 12:34 PM puppet | |
d-r--- 1/16/2020 12:22 PM Saved Games | |
d-r--- 1/16/2020 12:24 PM Searches | |
d-r--- 1/16/2020 12:22 PM Videos | |
-a---- 1/16/2020 12:33 PM 56 .gitconfig | |
PS C:\Users\labuser> git clone https://github.com/angular/components.git | |
Cloning into 'components'... | |
remote: Enumerating objects: 182, done. | |
remote: Counting objects: 100% (182/182), done. | |
remote: Compressing objects: 100% (161/161), done. | |
remote: Total 104545 (delta 105), reused 30 (delta 21), pack-reused 104363 eceiving objects: 100% (104545/104545), 39.16 MiB | 13.02 MiB/s | |
Receiving objects: 100% (104545/104545), 40.21 MiB | 13.14 MiB/s, done. | |
Resolving deltas: 100% (81311/81311), done. | |
Checking out files: 100% (3970/3970), done. | |
PS C:\Users\labuser> cd .\components\ | |
PS C:\Users\labuser\components> bazel build //... | |
bazel : The term 'bazel' is not recognized as the name of a cmdlet, function, script file, or operable program. Check | |
the spelling of the name, or if a path was included, verify that the path is correct and try again. | |
At line:1 char:1 | |
+ bazel build //... | |
+ ~~~~~ | |
+ CategoryInfo : ObjectNotFound: (bazel:String) [], CommandNotFoundException | |
+ FullyQualifiedErrorId : CommandNotFoundException | |
PS C:\Users\labuser\components> ^C | |
PS C:\Users\labuser\components> npm i -g @bazel/bazeliks | |
Terminate batch job (Y/N)? y | |
PS C:\Users\labuser\components> npm i -g @bazel/bazelisk | |
C:\Users\labuser\AppData\Roaming\npm\bazel -> C:\Users\labuser\AppData\Roaming\npm\node_modules\@bazel\bazelisk\bazelisk.js | |
C:\Users\labuser\AppData\Roaming\npm\bazelisk -> C:\Users\labuser\AppData\Roaming\npm\node_modules\@bazel\bazelisk\bazelisk.js | |
+ @bazel/bazelisk@1.6.1 | |
added 1 package in 4.781s | |
PS C:\Users\labuser\components> bazel build //... | |
2020/08/19 08:41:05 Downloading https://releases.bazel.build/3.1.0/release/bazel-3.1.0-windows-x86_64.exe... | |
Extracting Bazel installation... | |
Starting local Bazel server and connecting to it... | |
yarn install v1.22.0 | |
$ node ./tools/npm/check-npm.js | |
[1/5] Validating package.json... | |
[2/5] Resolving packages... | |
warning Resolution field "graceful-fs@4.2.2" is incompatible with requested version "graceful-fs@^3.0.0" | |
warning Resolution field "graceful-fs@4.2.2" is incompatible with requested version "graceful-fs@~1.2.0" | |
[3/5] Fetching packages... | |
info There appears to be trouble with your network connection. Retrying... | |
info There appears to be trouble with your network connection. Retrying... | |
info There appears to be trouble with your network connection. Retrying... | |
info fsevents@2.1.1: The platform "win32" is incompatible with this module. | |
info "fsevents@2.1.1" is an optional dependency and failed compatibility check. Excluding it from installation. | |
info fsevents@1.2.8: The platform "win32" is incompatible with this module. | |
info "fsevents@1.2.8" is an optional dependency and failed compatibility check. Excluding it from installation. | |
info fsevents@2.1.2: The platform "win32" is incompatible with this module. | |
info "fsevents@2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation. | |
[4/5] Linking dependencies... | |
warning " > tsickle@0.38.1" has incorrect peer dependency "typescript@~3.8.2". | |
warning "@angular/dev-infra-private > @angular/benchpress > @angular/core@9.1.11" has incorrect peer dependency "tslib@^1.10.0". | |
warning " > ts-api-guardian@0.5.0" has incorrect peer dependency "typescript@~3.7.4". | |
[5/5] Building fresh packages... | |
$ node tools/postinstall/apply-patches.js && ngcc --properties module main --create-ivy-entry-points && node tools/postinstall/update-ngcc-main-fields.js | |
'patch' is not recognized as an internal or external command, | |
operable program or batch file. | |
Error: exec: 'patch' is not recognized as an internal or external command, | |
operable program or batch file. | |
at Object.error (C:\Users\labuser\components\node_modules\shelljs\src\common.js:110:27) | |
at execSync (C:\Users\labuser\components\node_modules\shelljs\src\exec.js:102:12) | |
at String._exec (C:\Users\labuser\components\node_modules\shelljs\src\exec.js:205:12) | |
at String.<anonymous> (C:\Users\labuser\components\node_modules\shelljs\src\common.js:335:23) | |
at applyPatch (C:\Users\labuser\components\tools\postinstall\apply-patches.js:183:26) | |
at applyPatches (C:\Users\labuser\components\tools\postinstall\apply-patches.js:90:3) | |
at main (C:\Users\labuser\components\tools\postinstall\apply-patches.js:43:5) | |
error Command failed with exit code 1. | |
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. | |
INFO: Repository npm instantiated at: | |
no stack (--record_rule_instantiation_callstack not enabled) | |
Repository rule yarn_install defined at: | |
C:/users/labuser/_bazel_labuser/fxjuv6de/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl:450:16: in <toplevel> | |
ERROR: An error occurred during the fetch of repository 'npm': | |
yarn_install failed: (yarn install v1.22.0 | |
$ node ./tools/npm/check-npm.js | |
[1/5] Validating package.json... | |
[2/5] Resolving packages... | |
warning Resolution field "graceful-fs@4.2.2" is incompatible with requested version "graceful-fs@^3.0.0" | |
warning Resolution field "graceful-fs@4.2.2" is incompatible with requested version "graceful-fs@~1.2.0" | |
[3/5] Fetching packages... | |
info There appears to be trouble with your network connection. Retrying... | |
info There appears to be trouble with your network connection. Retrying... | |
info There appears to be trouble with your network connection. Retrying... | |
info fsevents@2.1.1: The platform "win32" is incompatible with this module. | |
info "fsevents@2.1.1" is an optional dependency and failed compatibility check. Excluding it from installation. | |
info fsevents@1.2.8: The platform "win32" is incompatible with this module. | |
info "fsevents@1.2.8" is an optional dependency and failed compatibility check. Excluding it from installation. | |
info fsevents@2.1.2: The platform "win32" is incompatible with this module. | |
info "fsevents@2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation. | |
[4/5] Linking dependencies... | |
warning " > tsickle@0.38.1" has incorrect peer dependency "typescript@~3.8.2". | |
warning "@angular/dev-infra-private > @angular/benchpress > @angular/core@9.1.11" has incorrect peer dependency "tslib@^1.10.0". | |
warning " > ts-api-guardian@0.5.0" has incorrect peer dependency "typescript@~3.7.4". | |
[5/5] Building fresh packages... | |
$ node tools/postinstall/apply-patches.js && ngcc --properties module main --create-ivy-entry-points && node tools/postinstall/update-ngcc-main-fields.js | |
'patch' is not recognized as an internal or external command, | |
operable program or batch file. | |
Error: exec: 'patch' is not recognized as an internal or external command, | |
operable program or batch file. | |
at Object.error (C:\Users\labuser\components\node_modules\shelljs\src\common.js:110:27) | |
at execSync (C:\Users\labuser\components\node_modules\shelljs\src\exec.js:102:12) | |
at String._exec (C:\Users\labuser\components\node_modules\shelljs\src\exec.js:205:12) | |
at String.<anonymous> (C:\Users\labuser\components\node_modules\shelljs\src\common.js:335:23) | |
at applyPatch (C:\Users\labuser\components\tools\postinstall\apply-patches.js:183:26) | |
at applyPatches (C:\Users\labuser\components\tools\postinstall\apply-patches.js:90:3) | |
at main (C:\Users\labuser\components\tools\postinstall\apply-patches.js:43:5) | |
error Command failed with exit code 1. | |
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. | |
) | |
ERROR: no such package '@npm//': yarn_install failed: (yarn install v1.22.0 | |
$ node ./tools/npm/check-npm.js | |
[1/5] Validating package.json... | |
[2/5] Resolving packages... | |
warning Resolution field "graceful-fs@4.2.2" is incompatible with requested version "graceful-fs@^3.0.0" | |
warning Resolution field "graceful-fs@4.2.2" is incompatible with requested version "graceful-fs@~1.2.0" | |
[3/5] Fetching packages... | |
info There appears to be trouble with your network connection. Retrying... | |
info There appears to be trouble with your network connection. Retrying... | |
info There appears to be trouble with your network connection. Retrying... | |
info fsevents@2.1.1: The platform "win32" is incompatible with this module. | |
info "fsevents@2.1.1" is an optional dependency and failed compatibility check. Excluding it from installation. | |
info fsevents@1.2.8: The platform "win32" is incompatible with this module. | |
info "fsevents@1.2.8" is an optional dependency and failed compatibility check. Excluding it from installation. | |
info fsevents@2.1.2: The platform "win32" is incompatible with this module. | |
info "fsevents@2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation. | |
[4/5] Linking dependencies... | |
warning " > tsickle@0.38.1" has incorrect peer dependency "typescript@~3.8.2". | |
warning "@angular/dev-infra-private > @angular/benchpress > @angular/core@9.1.11" has incorrect peer dependency "tslib@^1.10.0". | |
warning " > ts-api-guardian@0.5.0" has incorrect peer dependency "typescript@~3.7.4". | |
[5/5] Building fresh packages... | |
$ node tools/postinstall/apply-patches.js && ngcc --properties module main --create-ivy-entry-points && node tools/postinstall/update-ngcc-main-fields.js | |
'patch' is not recognized as an internal or external command, | |
operable program or batch file. | |
Error: exec: 'patch' is not recognized as an internal or external command, | |
operable program or batch file. | |
at Object.error (C:\Users\labuser\components\node_modules\shelljs\src\common.js:110:27) | |
at execSync (C:\Users\labuser\components\node_modules\shelljs\src\exec.js:102:12) | |
at String._exec (C:\Users\labuser\components\node_modules\shelljs\src\exec.js:205:12) | |
at String.<anonymous> (C:\Users\labuser\components\node_modules\shelljs\src\common.js:335:23) | |
at applyPatch (C:\Users\labuser\components\tools\postinstall\apply-patches.js:183:26) | |
at applyPatches (C:\Users\labuser\components\tools\postinstall\apply-patches.js:90:3) | |
at main (C:\Users\labuser\components\tools\postinstall\apply-patches.js:43:5) | |
error Command failed with exit code 1. | |
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. | |
) | |
INFO: Elapsed time: 527.387s | |
INFO: 0 processes. | |
FAILED: Build did NOT complete successfully (0 packages loaded) | |
PS C:\Users\labuser\components> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment