์ํฉ
turbo๋ผ๋ ํจํค์ง๋ฅผ global๋ก ์ค์นํ๋๋ฐ, terminal์์ ์ฐพ์ ์ ์๋ ๋ช ๋ น์ด๋ผ๋ ์๋ฌ๊ฐ ๊ณ์ ๋ด๋ค.
npm list -g ๋ช ๋ น์ด๋ก ์ด๋ค ํจํค์ง๋ค์ด global๋ก ๊น๋ ค์๋์ง ํ์ธํ๋ฉด, ์ ๋์จ๋ค.

๋ฌธ์
ํจํค์ง๋ฅผ ์ค์นํ์ง๋ง command not found ์๋ฌ๋ฅผ ๊ณ์ ๋ง์ฃผํ๋ค๋ฉด, ํ๊ฒฝ๋ณ์ ๋ฌธ์ ์ด๋ค.
ํด๊ฒฐ
๊ธ๋ก๋ฒ ํจํค์ง์ ์คํํ์ผ์ด ์์นํ๋ ๊ฒฝ๋ก๋ฅผ ํ๊ฒฝ๋ณ์์ ์ถ๊ฐํด์, ๋ช ๋ น์ด๋ฅผ ์ด๋์์๋ ์ง ์ฌ์ฉํ ์ ์๊ฒ ํ๋ค.
zsh ์์ configuration file (์ค์ ํ์ผ)์ธ `.zshrc` ํ์ผ์ ํ๊ฒฝ๋ณ์๋ฅผ ์ถ๊ฐํ๋ค.
ํ์ฌ npm global path๋ฅผ ์์๋ด๊ธฐ
npm config get prefix

๊ทธ๋ผ npm global ํจํค์ง๊ฐ ์ค์น๋์ด์๋ ๊ฒฝ๋ก๊ฐ ๋์จ๋ค.
.zshrc ํ์ผ์ ์์ ํ๊ธฐ ์ํด vim ์๋ํฐ ์คํ
vim .zshrc
.zshrc ํ์ผ์ ํ๊ฒฝ ๋ณ์ ์ถ๊ฐํ๊ธฐ
export PATH=npmglobal์ ์ฅ๋ํจ์ค/bin:$PATH
๋์ ๊ฒฝ์ฐ๋ ์๋์ ๊ฐ์ด ์ ์ด์ฃผ์๋ค.
export PATH=/Users/hana/.npm-global/bin:$PATH

vim์๋ํฐ๋ก ์ ์ฅํ ์ข ๋ฃํ๊ณ ํฐ๋ฏธ๋์ ๊ป๋ค๊ฐ ์ฌ์์ํ๋ค.
ํจํค์ง ๋ช --version์ผ๋ก ๋ช ๋ น์ด๊ฐ ์ ์๋๋๋์ง ํ์ธ

์ ์๋๋๋ค!! ๋
์ฐธ๊ณ
Command not found after npm install in zsh
I'm having some problems installing vows via npm in zsh. Here's what I get. I tried installing it with and without the -g option. Do you have any idea what's wrong here? [โค ~/Desktop/sauce-node-demo:
stackoverflow.com
https://stackoverflow.com/questions/18383476/how-to-get-the-npm-global-path-prefix
How to get the npm global path prefix
I believe that in the past I've discovered an option to pass to npm to get it to output the path it is using for -g (global modules). Does anyone know such an option? Or any other method to get the
stackoverflow.com
https://www.dhiwise.com/post/how-to-fix-the-zsh-command-not-found-error-like-a-pro
Guide to Fix "Zsh Command Not Found" Error
Learn how to fix "zsh command not found next" error.
www.dhiwise.com
https://velog.io/@ansmeer008/%EC%97%90%EB%9F%AC-%EB%A1%9C%EA%B7%B8-zsh-command-not-found-vue
[์๋ฌ ๋ก๊ทธ] zsh: command not found: vue
๋งฅ๋ถ ์์ด๋ฅผ ์ฌ์ฉํ๊ณ ์๋๋ฐ, ํฐ๋ฏธ๋์์ global ํค์๋๋ฅผ ๋ถ์ฌ์ ํจํค์ง๋ฅผ ์ค์นํ ๋ ์ค์น ํ ๋ฒ์ ๋ช ๋ น์ด๋ฅผ ์ ๋ ฅํ๋ฉด command not found๋ฅผ ๋ง๋ ์ ์ด ๋ง๋ค...(node๋ npm ๋ฒ์ ์ ์ ํ์ธ๋จ) ๋งฅ๋ถ ๊ถํ
velog.io
์ํฉ
turbo๋ผ๋ ํจํค์ง๋ฅผ global๋ก ์ค์นํ๋๋ฐ, terminal์์ ์ฐพ์ ์ ์๋ ๋ช ๋ น์ด๋ผ๋ ์๋ฌ๊ฐ ๊ณ์ ๋ด๋ค.
npm list -g ๋ช ๋ น์ด๋ก ์ด๋ค ํจํค์ง๋ค์ด global๋ก ๊น๋ ค์๋์ง ํ์ธํ๋ฉด, ์ ๋์จ๋ค.

๋ฌธ์
ํจํค์ง๋ฅผ ์ค์นํ์ง๋ง command not found ์๋ฌ๋ฅผ ๊ณ์ ๋ง์ฃผํ๋ค๋ฉด, ํ๊ฒฝ๋ณ์ ๋ฌธ์ ์ด๋ค.
ํด๊ฒฐ
๊ธ๋ก๋ฒ ํจํค์ง์ ์คํํ์ผ์ด ์์นํ๋ ๊ฒฝ๋ก๋ฅผ ํ๊ฒฝ๋ณ์์ ์ถ๊ฐํด์, ๋ช ๋ น์ด๋ฅผ ์ด๋์์๋ ์ง ์ฌ์ฉํ ์ ์๊ฒ ํ๋ค.
zsh ์์ configuration file (์ค์ ํ์ผ)์ธ .zshrc
ํ์ผ์ ํ๊ฒฝ๋ณ์๋ฅผ ์ถ๊ฐํ๋ค.
ํ์ฌ npm global path๋ฅผ ์์๋ด๊ธฐ
npm config get prefix

๊ทธ๋ผ npm global ํจํค์ง๊ฐ ์ค์น๋์ด์๋ ๊ฒฝ๋ก๊ฐ ๋์จ๋ค.
.zshrc ํ์ผ์ ์์ ํ๊ธฐ ์ํด vim ์๋ํฐ ์คํ
vim .zshrc
.zshrc ํ์ผ์ ํ๊ฒฝ ๋ณ์ ์ถ๊ฐํ๊ธฐ
export PATH=npmglobal์ ์ฅ๋ํจ์ค/bin:$PATH
๋์ ๊ฒฝ์ฐ๋ ์๋์ ๊ฐ์ด ์ ์ด์ฃผ์๋ค.
export PATH=/Users/hana/.npm-global/bin:$PATH

vim์๋ํฐ๋ก ์ ์ฅํ ์ข ๋ฃํ๊ณ ํฐ๋ฏธ๋์ ๊ป๋ค๊ฐ ์ฌ์์ํ๋ค.
ํจํค์ง ๋ช --version์ผ๋ก ๋ช ๋ น์ด๊ฐ ์ ์๋๋๋์ง ํ์ธ

์ ์๋๋๋ค!! ๋
์ฐธ๊ณ
Command not found after npm install in zsh
I'm having some problems installing vows via npm in zsh. Here's what I get. I tried installing it with and without the -g option. Do you have any idea what's wrong here? [โค ~/Desktop/sauce-node-demo:
stackoverflow.com
https://stackoverflow.com/questions/18383476/how-to-get-the-npm-global-path-prefix
How to get the npm global path prefix
I believe that in the past I've discovered an option to pass to npm to get it to output the path it is using for -g (global modules). Does anyone know such an option? Or any other method to get the
stackoverflow.com
https://www.dhiwise.com/post/how-to-fix-the-zsh-command-not-found-error-like-a-pro
Guide to Fix "Zsh Command Not Found" Error
Learn how to fix "zsh command not found next" error.
www.dhiwise.com
https://velog.io/@ansmeer008/%EC%97%90%EB%9F%AC-%EB%A1%9C%EA%B7%B8-zsh-command-not-found-vue
[์๋ฌ ๋ก๊ทธ] zsh: command not found: vue
๋งฅ๋ถ ์์ด๋ฅผ ์ฌ์ฉํ๊ณ ์๋๋ฐ, ํฐ๋ฏธ๋์์ global ํค์๋๋ฅผ ๋ถ์ฌ์ ํจํค์ง๋ฅผ ์ค์นํ ๋ ์ค์น ํ ๋ฒ์ ๋ช ๋ น์ด๋ฅผ ์ ๋ ฅํ๋ฉด command not found๋ฅผ ๋ง๋ ์ ์ด ๋ง๋ค...(node๋ npm ๋ฒ์ ์ ์ ํ์ธ๋จ) ๋งฅ๋ถ ๊ถํ
velog.io