๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป Programming/error-record

[Error]Mac zsh - brew install heroku

$ brew install heroku

heroku๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด zsh ์‰˜์— ํ•ด๋‹น ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜์˜€์œผ๋‚˜ ์•„๋ž˜์™€ ๊ฐ™์€ ์˜ค๋ฅ˜๊ฐ€ ๋‚ฌ๋‹ค.

๊ณต์‹์ ์ธ ์ด๋ฆ„์ด ์—†๋‹ค๊ณ  ํ•˜๋Š”๋ฐ ์ด๊ฒŒ ๋ฌด์Šจ ์ผ์ด์•ผ.. 

Warning: No available formula with the name "heroku".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.

 

Error in zsh

 

์žฌ๋น ๋ฅด๊ฒŒ ๊ตฌ๊ธ€๋ง์„ ํ•ด๋ณธ ๊ฒฐ๊ณผ, ๋‹ค์–‘ํ•œ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• ์žˆ์—ˆ๊ณ  ์‹œ๋„๋ฅผ ํ•ด๋ณด์•˜์œผ๋‚˜ ๋‚˜์—๊ฒ ํ•ด๊ฒฐ์ฑ…์ด ๋˜์–ด์ฃผ์ง€ ๋ชปํ–ˆ๋‹ค.

๊ฐ€์žฅ ๋งŽ์•˜๋˜ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์€ ์•„๋ž˜์™€ ๊ฐ™๋‹ค. stack over flow์—์„œ๋„ ๊ฐ€์žฅ ๋งŽ์€ ํ‘œ๋ฅผ ๋ฐ›์€ ํ•ด๊ฒฐ์ฑ….

$ rm -rf $(brew --repo homebrew/core)

๋‚˜์˜ ๊ฒฝ์šฐ๋Š” ๊ณ„์†  ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋‚ฌ๋‹ค. (๋‹ค๋ฅธ ์‚ฌ๋žŒ๋“ค์€ ํ•ด๊ฒฐ๋˜์—ˆ๋‹ค๋Š”๋ฐ ๋‚˜๋Š” ์™œ?)

๊ทธ๋Ÿฌ๋˜ ์ค‘, heroku๋Š” ์•„๋‹ˆ์ง€๋งŒ mongodb๋ฅผ ์„ค์น˜ํ•˜๋ฉฐ ๊ฐ™์€ ์—๋Ÿฌ๋ฅผ ๋งŒ๋‚œ ๋ถ„์„ stack over flow์—์„œ ๋งŒ๋‚ฌ๋‹ค! ๐Ÿฅ•

https://stackoverflow.com/questions/57856809/installing-mongodb-with-homebrew

 

Installing MongoDB with Homebrew

I'm relatively new to MongoDB and am trying to install MongoDB on my Mac with Homebrew, but I'm getting the following error: Error: No available formula with the name "mongodb" ==> Searching f...

stackoverflow.com

๋‚˜๋Š” mongodb๊ฐ€ ์žˆ๋˜ ์ž๋ฆฌ์— heroku๋กœ ๋ฐ”๊พธ์–ด ์•„๋ž˜์ฒ˜๋Ÿผ ์‹คํ–‰์„ ํ•ด๋ณด์•˜๋‹ค.

# If you still have the old heroku installed from homebrew-core
brew services stop heroku
brew uninstall homebrew/core/heroku

# Use the migrated distribution from custom tap
brew tap heroku/brew
brew install heroku

๋‹คํ–‰ํžˆ๋„ ์•„๋ž˜์™€ ๊ฐ™์ด ์ž˜ ์„ค์น˜๊ฐ€ ๋˜์—ˆ๋‹ค. mongodb ์†”๋ฃจ์…˜์—์„œ ๋‚˜์˜จ "brew services start heroku" ๋ช…๋ น์–ด๋Š” ๊ณต์‹ heroku๋Š” serivces๋ฅผ ๊ตฌํ˜„ํ•˜์ง€ ์•Š์•˜๋‹ค๋Š” error๊ฐ€ ๋‚˜์„œ, ์–˜๋Š” ๋”ฐ๋กœ ์‚ฌ์šฉ์„ ํ•˜์ง€ ์•Š์•„๋„ ๋  ๊ฒƒ ๊ฐ™๋‹ค. ํ„ฐ๋ฏธ๋„ ์ฐฝ์— "heroku"๋ผ๊ณ  ์ž…๋ ฅํ•˜๋ฉด ์„ค์น˜๊ฐ€ ๋˜์–ด ๋‹คํ–‰ํžˆ๋„ info๊ฐ€ ์ž˜ ๋œฌ๋‹ค! ์˜ค๋Š˜๋„ error๋ฅผ ๋ฌผ๋ฆฌ์ณค๋‹ค, ๋‚˜ ์ž์‹ .. ์ˆ˜๊ณ ํ–ˆ์–ด๐Ÿ‘โš”๏ธ

good
heroku ํ™•์ธ