Focus On Develop ๐ŸคŸ๐ŸคŸ

[node.js] Mac์— ์„ค์น˜๋œ node.js ์ œ๊ฑฐํ•˜๊ธฐ ๋ณธ๋ฌธ

๊ณตํ†ต/BackEnd

[node.js] Mac์— ์„ค์น˜๋œ node.js ์ œ๊ฑฐํ•˜๊ธฐ

๋ˆ„๋ฆฌ๋‹ฌ์ดํ‹€ 2021. 3. 4. 21:24

 

์˜ค๋ž˜์ „์— nodeJs๋ฅผ ์„ค์น˜ํ•ด์„œ ์ด๊ฒƒ ์ €๊ฒƒ ํ•ด๋ณธ ๊ธฐ์–ต์ด ์žˆ๋Š”๋ฐ, ๋‹ค์‹œ nodeJs๋ฅผ ์‚ฌ์šฉํ•ด์„œ ๋ญ”๊ฐ€๋ฅผ ์‹œ๋„ํ•˜๋ ค๊ณ  ํ–ˆ๋”๋‹ˆ....

.์•„๋ฟ”์‹ธ.. node ์„ค์น˜๋ถ€ํ„ฐ npm ์‚ฌ์šฉ๊นŒ์ง€ ์ค„์ค„์ด ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•ด์„œ, ํ•˜๋‚˜ํ•˜๋‚˜ ํ•ด๊ฒฐํ•˜๋‹ค๊ฐ€....

๊ฒฐ๊ตญ์€ nodeJs๋ฅผ ์‹น ์ง€์šฐ๊ณ  ๋‹ค์‹œ ์„ค์น˜ํ•˜๋Š”๊ฒŒ ๊น”๋”ํ•˜๋‹ค๋Š”๊ฑธ ์•Œ๊ฒŒ ๋˜์—ˆ๊ณ , ์ด๋ ‡๊ฒŒ ์ •๋ฆฌํ•ด๋‘ก๋‹ˆ๋‹ค ๐Ÿ˜Ž

 

Stack Overflow์—๋„ ๊ด€๋ จ ์—๋Ÿฌ์— ๋Œ€ํ•œ ์งˆ๋ฌธ์ด ๋งŽ์€ ๊ฑธ ๋ณด๋‹ˆ, ๋งŽ์€ ๋ถ„๋“ค์ด ๊ฐ™๊ตฌ๋‚˜. ์‹ถ์—ˆ์–ด์š” ใ…‹ใ…‹

๊ทธ๋Ÿด๋• ์ด๋ ‡๊ฒŒ ์‹น ์ง€์šฐ๊ณ  ์ƒˆ๋กœ ์„ค์น˜ํ•ด๋ณด์„ธ์š” ๐Ÿ‘๐Ÿ‘

 

ํ„ฐ๋ฏธ๋„์„ ์ผœ๊ณ  ์•„๋ž˜ ๋ช…๋ น์–ด๋“ค์„ ์‹คํ–‰ํ•ด์ฃผ์„ธ์š”.

 

sudo npm uninstall npm -g (์ด๊ฑด ์—๋Ÿฌ๋‚  ์ˆ˜๋„ ์žˆ๋Š”๋ฐ ์—๋Ÿฌ๋‚˜๋ฉด ํŒจ์Šคํ•˜์„ธ์š”! ์–ด์ฐจํ”ผ ์ง€์›Œ์ง‘๋‹ˆ๋‹ค.)

sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.*

sudo rm -rf /usr/local/include/node /Users/$USER/.npm

sudo rm /usr/local/bin/node

sudo rm /usr/local/share/man/man1/node.1

sudo rm /usr/local/lib/dtrace/node.d

brew uninstall node

 

 

์‚ญ์ œ ๋ ^^ ํŽธ..์•ˆ..๐Ÿ˜‚


 

๋‹ค์‹œ ์„ค์น˜ํ•˜์‹ค๋•Œ๋Š” brew install node ๋ช…๋ น์–ด๋กœ ์„ค์น˜ํ•ด์ฃผ์‹œ๊ฑฐ๋‚˜, nodeJs ํ™ˆํŽ˜์ด์ง€๋ฅผ ํ†ตํ•ด ๋‹ค์šด๋ฐ›์œผ์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค~

https://nodejs.org

 

Node.js

Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.

nodejs.org

 

'๊ณตํ†ต > BackEnd' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

[node.js] Nodejs, Expressjs๋ž€?  (0) 2021.03.04
[mongoDB] Mongo DB, Mongoose๋ž€?  (0) 2021.03.04
[BigSur] MongoDB ์„ค์น˜ํ•˜๊ธฐ  (0) 2021.03.04
[BigSur] homebrew-core is a shallow clone ์—๋Ÿฌํ•ด๊ฒฐ  (0) 2021.03.04
Comments