Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to install node.js in MACOS by using homebrew

Tags:

homebrew

nodes

If I write, brew install node

==> Searching for similarly named formulae... Error: No similarly named formulae found. Error: No available formula or cask with the name "node". It was migrated from homebrew/cask to homebrew/core.

If I write, brew doctor

Warning: Suspicious https://github.com/Homebrew/homebrew-core git origin remote found.
The current git origin is:
  https://github.com/Homebrew/brew

With a non-standard origin, Homebrew won't update properly.
You can solve this by setting the origin remote:
  git -C "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core" remote set-url origin https://github.com/Homebrew/homebrew-core

Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and which additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew-provided
script of the same name. We found the following "config" scripts:
  /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7-config
  /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7m-config
  /Library/Frameworks/Python.framework/Versions/3.7/bin/python3-config

help me....I want to download node by using homebrew, and I want to solve all Warning.........

like image 841
tobedev Avatar asked Jan 22 '21 07:01

tobedev


People also ask

Can I install Node with Homebrew?

Use Homebrew to install Node. js on MacOS. Homebrew is a better way to manage various packages on your Mac.

How to install Node JS with homebrew?

Install Node.js and npm with Homebrew. First, install Homebrew. Then run brew update to make sure Homebrew is up to date. As a safe measure you should run brew doctor to make sure your system is ready to brew.

How to install Node JS on MacBook Air?

Install Node.js and npm using Homebrew on OS X and macOS. If you’re looking for an easy guide to install Node.js and npm on OS X and macOS — this is it. The default method for installing Node.js is to download a pre-built installer for your platform, install it and make sure it’s on your $PATH.

What is the use of homebrew on Mac?

Homebrew is a package manager for macOS which lets you install free and open-source software using your terminal. You’ll use Homebrew to install developer tools like Python, Ruby, Node.js, and more. In this tutorial you’ll install and use Homebrew on your Mac.

How to install NPM on Mac OS X?

NPM (Node Package Manager) is command line tool for Node.js packages that installs, updates and uninstall packages in your projects.We don’t have install npm separately it is includes with Node.js installation. First download the latest node.js package from node.js official site and click on macOS installer, it will download .pkg file.


Video Answer


2 Answers

Just follow the instructions.

According to brew doctor, you have to run this command.

git -C $(brew --repo homebrew/core) checkout master

I just had the same issue. Once checked-out to master, install ran correctly.

like image 146
pandres95 Avatar answered Nov 08 '22 10:11

pandres95


My solution is to remove homebrew/core and tap homebrew/core again.

follow these command:

First:

rm -rf "/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core"

Second:

brew tap homebrew/core

Then just do the normal install process.

like image 25
Anthonyeef Avatar answered Nov 08 '22 12:11

Anthonyeef