Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bazel can not work in my Mac. #14029

Closed
omercanyigit1 opened this issue Sep 23, 2021 · 2 comments
Closed

Bazel can not work in my Mac. #14029

omercanyigit1 opened this issue Sep 23, 2021 · 2 comments

Comments

@omercanyigit1
Copy link

I have a big problem with about the bazel. I am using the Macos Big Sur with Apple M1 and i can not load the bazel files and it can not find my npm files. Can you help me?

Error:

ERROR: An error occurred during the fetch of repository 'npm':
Traceback (most recent call last):
File "/private/var/tmp/_bazel_omercanyigit/100a58fa745a5d1002a5089e0960865d/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl", line 693, column 31, in _yarn_install_impl
node = repository_ctx.path(get_node_label(repository_ctx))
Error in path: Unable to load package for @nodejs_darwin_arm64//:bin/node: The repository '@nodejs_darwin_arm64' could not be resolved
ERROR: Error fetching repository: Traceback (most recent call last):
File "/private/var/tmp/_bazel_omercanyigit/100a58fa745a5d1002a5089e0960865d/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl", line 693, column 31, in _yarn_install_impl
node = repository_ctx.path(get_node_label(repository_ctx))
Error in path: Unable to load package for @nodejs_darwin_arm64//:bin/node: The repository '@nodejs_darwin_arm64' could not be resolved
ERROR: Skipping '//apps/desktop/server:desktop-server-bin': no such package '@npm//@bazel/esbuild': Unable to load package for @nodejs_darwin_arm64//:bin/node: The repository '@nodejs_darwin_arm64' could not be resolved
WARNING: Target pattern parsing failed.
ERROR: no such package '@npm//@bazel/esbuild': Unable to load package for @nodejs_darwin_arm64//:bin/node: The repository '@nodejs_darwin_arm64' could not be resolved
INFO: Elapsed time: 0.165s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)
currently loading: apps/desktop/server
error Command failed with exit code 1.

@keith
Copy link
Member

keith commented Sep 23, 2021

This is an issue with rules nodejs. It looks like this has already been filed as bazel-contrib/rules_nodejs#2733 but if the solutions there don't work you should file another issue on that repo

@oquenchil
Copy link
Contributor

Thanks Keith.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants