Giter Club home page Giter Club logo

Comments (2)

andrew-waters avatar andrew-waters commented on August 27, 2024 1

Ah, you know what, I think this is specifically related to Node. I've tried a couple of manual steps on the host machine in between running the the node@16 command, and I actually think it's just not symlinked because of the keg:

brew info node@16
==> node@16: stable 16.17.0 (bottled) [keg-only]
Platform built on V8 to build network applications
https://nodejs.org/
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/[email protected]
License: MIT
==> Dependencies
Build: pkg-config ✘, [email protected] ✘
Required: brotli ✔, c-ares ✔, icu4c ✔, libnghttp2 ✔, libuv ✔, [email protected] ✔
==> Caveats
node@16 is keg-only, which means it was not symlinked into /opt/homebrew,
because this is an alternate version of another formula.

==> Analytics
install: 99,730 (30 days), 260,000 (90 days), 498,403 (365 days)
install-on-request: 46,398 (30 days), 113,526 (90 days), 295,347 (365 days)
build-error: 214 (30 days)

And after brew install node@16:

brew info node@16
==> node@16: stable 16.17.0 (bottled) [keg-only]
Platform built on V8 to build network applications
https://nodejs.org/
/opt/homebrew/Cellar/node@16/16.17.0_1 (1,858 files, 47.5MB)
  Poured from bottle on 2022-09-09 at 15:32:49
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/[email protected]
License: MIT
==> Dependencies
Build: pkg-config ✘, [email protected] ✘
Required: brotli ✔, c-ares ✔, icu4c ✔, libnghttp2 ✔, libuv ✔, [email protected] ✔
==> Caveats
node@16 is keg-only, which means it was not symlinked into /opt/homebrew,
because this is an alternate version of another formula.

If you need to have node@16 first in your PATH, run:
  echo 'export PATH="/opt/homebrew/opt/node@16/bin:$PATH"' >> ~/.zshrc

For compilers to find node@16 you may need to set:
  export LDFLAGS="-L/opt/homebrew/opt/node@16/lib"
  export CPPFLAGS="-I/opt/homebrew/opt/node@16/include"

==> Analytics
install: 99,730 (30 days), 260,000 (90 days), 498,403 (365 days)
install-on-request: 46,398 (30 days), 113,526 (90 days), 295,347 (365 days)
build-error: 214 (30 days)
node -v
zsh: command not found: node

So yeah, its looks like it's working but there are some chore that need to be done for some installs. Thanks for the quick response!

from ansible-collection-mac.

geerlingguy avatar geerlingguy commented on August 27, 2024

I just have in my list something like:

homebrew_installed_packages:
  - [email protected]

And that keeps the PHP installed version in line with the latest 7.4.x release series, at least. Are you sure there's not also just plain old node installed that might be overriding the versioned installation too?

from ansible-collection-mac.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.