[development] Bazel run fails to install nodejs
See original GitHub issueDescription
Iām trying to work on the Angular source code but when I run yarn run bazel test packages/...
, I get an error.
š„ Exception or Error
WARNING: Download from https://mirror.bazel.build/nodejs.org/dist/v12.14.1/node-v12.14.1-linux-x64.tar.xz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
When I manually fetched the URL, I got the following response:
<?xml version='1.0' encoding='UTF-8'?>
<Error>
<Code>NoSuchKey</Code>
<Message>The specified key does not exist.</Message>
</Error>
Workaround
Iāve found a fix by making Bazel download from https://nodejs.org instead of their mirror. This can be accomplished by the following commit: https://github.com/MatthiasKunnen/angular/commit/3d1524388852f95be780f89f4a140e8ea5c4d778.
If this change would be accepted I will make a PR.
š Your Environment
OS: Ubuntu 18.0.4.4 Commit: 64fc8b8ee5343585060c3eca71931cd101859923
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Can't run Bazel nodejs_image with Puppeteer (Error
This is a long-standing issue with building native dependencies with rules_nodejs . The native dependency is built and linked on your hostĀ ...
Read more >rules_nodejs | JavaScript and NodeJS rules for Bazel
Runs npm install during workspace setup. This rule will set the environment variable BAZEL_NPM_INSTALL to '1' (unless it set to another value in...
Read more >Build and Run Your First Node.js Application with Bazel
What you will learn. Setting up Bazel to work with Node.js applications; Creating two small hello-world Node.js applications and running them via Bazel....
Read more >Building JavaScript Outputs - Bazel 4.2.1
You can either Install Bazel following the same steps that you would for backend development, or you can install NodeJS with npm and...
Read more >Bazel cheatsheet
The easiest way to install Bazelisk is via npm , e.g.: ... To run a Karma test in the browser during development, use...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, it does: root@485a8ae61b17:/workspaces/angular# node ./scripts/build/build-packages-dist.js 2020/12/13 14:22:10 Downloading https://releases.bazel.build/3.6.0/release/bazel-3.6.0-linux-x86_64ā¦ Extracting Bazel installationā¦ Starting local Bazel server and connecting to itā¦ WARNING: Download from https://mirror.bazel.build/nodejs.org/dist/v12.14.1/node-v12.14.1-linux-x64.tar.xz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.