-
Notifications
You must be signed in to change notification settings - Fork 11
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
Failed to compile: Unexpected end of JSON input when installing Alloy #105
Comments
Hey! did it work when you retried or does the issue persist? |
I wasn't able to fix that yet. I've tried removing the cask and installing again. ATM I've downloaded the release and ran the binary |
Same issues here, MacOS 15.0.1, 2019 Intel. |
Investigated this a bit and found that it's something unrelated to our recent release of
The react project failing to build is here: https://github.com/grafana/alloy/tree/main/internal/web/ui |
I've managed to get to this stacktrace with the debugger, but I wasn't able to figure out what JSON is failing to parse.
If anyone has any further ideas, that would be great help.
Interestingly, this is reported to build fine on Windows. |
This could be related to nodejs/node#55826 |
We have merged a PR with a fix to pin to previous Node version. Can you test? |
Confirmed it works now 🎉 Thanks |
Hi. While installing Alloy on MacOS with the guide available at https://grafana.com/docs/alloy/latest/set-up/install/macos/ I've encountered an issue; the installation fails with following details:
Full content of yarn
2024-11-13 15:09:43 +0000yarn
run
build
yarn run v1.22.22
$ react-scripts build
Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
Failed to compile.
Unexpected end of JSON input
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
HOMEBREW_VERSION: 4.4.5
ORIGIN: https://github.com/Homebrew/brew
HEAD: 254bf3fe9d8fa2e1b2fb55dbcf535b2d870180c4
Last commit: 2 days ago
Core tap JSON: 13 Nov 15:09 UTC
Core cask tap JSON: 13 Nov 15:09 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 12
HOMEBREW_NO_BOOTSNAP: set
Homebrew Ruby: 3.3.6 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/bin/ruby
CPU: dodeca-core 64-bit arm_lobos
Clang: 16.0.0 build 1600
Git: 2.39.5 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.0.1-arm64
CLT: 16.0.0.0.1.1724870825
Xcode: N/A
Rosetta 2: false
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j12
CMAKE_PREFIX_PATH: /opt/homebrew/opt/[email protected]:/opt/homebrew
CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/opt/homebrew/Library/Homebrew/os/mac/pkgconfig/15
HOMEBREW_MAKE_JOBS: 12
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk
ACLOCAL_PATH: /opt/homebrew/share/aclocal
PATH: /opt/homebrew/Library/Homebrew/shims/mac/super:/opt/homebrew/opt/[email protected]/bin:/opt/homebrew/opt/node/bin:/opt/homebrew/opt/yarn/bin:/usr/bin:/bin:/usr/sbin:/sbin
The text was updated successfully, but these errors were encountered: