Closed michaelkotlyar closed 3 years ago
Log of the install, for what it's worth
2021-05-17 17:21:12 +1200
node
yvm.js
configure-shell
--yvmDir
.
HOMEBREW_VERSION: 3.1.7
ORIGIN: https://github.com/Homebrew/brew
HEAD: 92cf9047191393a2d624c64fc28d9595309ba273
Last commit: 5 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 7d22dce5c9d3d61c5035bf864660c5f74dd856d9
Core tap last commit: 8 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 4
HOMEBREW_NO_BOOTSNAP: set
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: quad-core 64-bit broadwell
Clang: 12.0.5 build 1205
Git: 2.30.1 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.2.3-x86_64
CLT: 12.5.0.0.1.1617976050
Xcode: 12.5
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j4
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/11
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/bin:/bin:/usr/sbin:/sbin
Hi @uzimike! Please let us know if the fix that was just merged addresses your issue! Closing this issue for now, but will reopen if you're still having the same trouble with the new changes. :rocket:
I see the changes on the repo but there's no new release for brew to install. Still downloading 4.1.4!
Based on the attached PR and my understanding of the problem, the root cause lies in the tap rather than in YVM (so 4.1.4 would be expected here); if you run through the install again, do you hit the same problem still?
I get the same output and log, unfortunately. Ran brew update && brew upgrade
beforehand too
Reopening the issue for further digging.
@uzimike you might have to clear your cache so that it redownloads the formula i.e. brew cleanup
or specifically brew cleanup -s yvm
. Also do you mind share the new install logs, unable to reproduce now, also ran an update and upgrade.
Sorry for the delay. I got very sick the past couple days 🤧 Ran the both cleanup commands just in case, but to no avail. Here's the output...
Michael@MacBook-Pro ~ % brew install tophat/bar/yvm --without-node
==> Installing yvm from tophat/bar
==> Downloading https://github.com/tophat/yvm/releases/download/v4.1.4/yvm.js
==> Downloading from https://github-releases.githubusercontent.com/137530684/cdbbda80-842c-11eb-80be-17e6b2b5bc82?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210602%2Fus-eas
######################################################################## 100.0%
==> node yvm.js configure-shell --yvmDir . --home .
Last 15 lines from /Users/Michael/Library/Logs/Homebrew/yvm/01.node:
2021-06-03 10:40:32 +1200
node
yvm.js
configure-shell
--yvmDir
.
--home
.
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/tophat/homebrew-bar/issues
These open issues may also help:
Weird output on fail of installing yvm via brew https://github.com/tophat/homebrew-bar/issues/46
The log
2021-06-03 10:40:32 +1200
node
yvm.js
configure-shell
--yvmDir
.
--home
.
HOMEBREW_VERSION: 3.1.9
ORIGIN: https://github.com/Homebrew/brew
HEAD: 76cfe88b7628a8010bf98115627f6aced4ff8870
Last commit: 10 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: a8cf30fe792485935e01374bb21cd75f748d7b29
Core tap last commit: 13 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 4
HOMEBREW_NO_BOOTSNAP: set
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: quad-core 64-bit broadwell
Clang: 12.0.5 build 1205
Git: 2.30.1 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.2.3-x86_64
CLT: 12.5.0.0.1.1617976050
Xcode: 12.5
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j4
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/11
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/bin:/bin:/usr/sbin:/sbin
@uzimike sorry this is a curious one and the logs do not seem to indicate anything unusual. Please try the following and share the result, I think your tap might need to be reset.
$ brew untap tophat/bar
$ brew install tophat/bar/yvm --verbose
No need to share the log at this point, the shell output of the verbose command should be sufficient to debug
Michael@MacBook-Pro ~ % brew install tophat/bar/yvm --verbose
==> Tapping tophat/bar
git clone https://github.com/tophat/homebrew-bar /usr/local/Homebrew/Library/Taps/tophat/homebrew-bar --origin=origin --template=
Cloning into '/usr/local/Homebrew/Library/Taps/tophat/homebrew-bar'...
remote: Enumerating objects: 184, done.
remote: Counting objects: 100% (27/27), done.
remote: Compressing objects: 100% (22/22), done.
remote: Total 184 (delta 8), reused 6 (delta 1), pack-reused 157
Receiving objects: 100% (184/184), 40.10 KiB | 805.00 KiB/s, done.
Resolving deltas: 100% (73/73), done.
Tapped 1 formula (20 files, 69.6KB).
==> Installing yvm from tophat/bar
==> Downloading https://github.com/tophat/yvm/releases/download/v4.1.4/yvm.js
Already downloaded: /Users/Michael/Library/Caches/Homebrew/downloads/752b81531803ce9f5a3327b38ab5815011889f5ed969338e5645aa3814358771--yvm.js
==> Verifying checksum for '752b81531803ce9f5a3327b38ab5815011889f5ed969338e5645aa3814358771--yvm.js'
/usr/bin/sandbox-exec -f /private/tmp/homebrew20210603-53046-1quvnfy.sb nice ruby -W1 -- /usr/local/Homebrew/Library/Homebrew/build.rb /usr/local/Homebrew/Library/Taps/tophat/homebrew-bar/Formula/yvm.rb --verbose
cp -p /Users/Michael/Library/Caches/Homebrew/downloads/752b81531803ce9f5a3327b38ab5815011889f5ed969338e5645aa3814358771--yvm.js /private/tmp/yvm-20210603-53047-12ateyv/yvm.js
==> node yvm.js configure-shell --yvmDir . --home .
Shell configured successfully
==> Cleaning
==> Finishing up
/usr/bin/sandbox-exec -f /private/tmp/homebrew20210603-53123-1w5dw3d.sb nice ruby -W1 -I $LOAD_PATH -- /usr/local/Homebrew/Library/Homebrew/postinstall.rb /usr/local/Homebrew/Library/Taps/tophat/homebrew-bar/Formula/yvm.rb
==> Caveats
Run the following command to configure your shell rc file
$ node "/usr/local/opt/yvm/yvm.js" configure-shell --yvmDir "/usr/local/opt/yvm"
See "/usr/local/opt/yvm/.config" for examples.
If you have previously installed YVM, link the versions folder
to allow all brewed YVM access to the managed yarn distributions
$ ln -sF ~/.yvm/versions /usr/local/opt/yvm
==> Summary
🍺 /usr/local/Cellar/yvm/4.1.4: 10 files, 1.6MB, built in 9 seconds
After installing, I open a new terminal and run yvm
but it's not found. It seems I have to run node "/usr/local/opt/yvm/yvm.js" configure-shell --yvmDir "/usr/local/opt/yvm"
@uzimike yeah since brew formulas are sandboxed on installation, you have to run the additional command in the caveats after installation to configure your shell.
You can run --help
to see the configure shell command options. But the default options configures for bash
, zsh
and fish
shells. The examples should be available in
ls -a "/usr/local/opt/yvm/.config"
same issue here
Installing yvm with brew just doesn't work. Log doesn't provide a clear explanation to me.
Output from install attempt below.