question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

[development] Bazel run fails to install nodejs

See original GitHub issue

Description

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:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
akuczynscommented, Dec 13, 2020

@MatthiasKunnen does this still happen? It looks like it may have been a transient error with the mirror.

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

0reactions
angular-automatic-lock-bot[bot]commented, Apr 8, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found