๋ณธ๋ฌธ์œผ๋กœ ๊ฑด๋„ˆ๋›ฐ๊ธฐ

NPM์˜ "Missing write access error"

์—๋Ÿฌ ์ƒํ™ฉ#

NPM์„ ์ฒ˜์Œ ์„ค์น˜ํ•˜๊ณ  global ์˜ต์…˜์œผ๋กœ yarn ์„ ์„ค์น˜ํ•˜๋ ค๊ณ  ํ•  ๋•Œ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค .

Missing write access to /usr/local/lib/node_modules

2021-03-09-npm์˜-missing-write-access-error-image-0

ํ•ด๋‹น ๋””๋ ‰ํ† ๋ฆฌ์— ์“ฐ๊ธฐ ๊ถŒํ•œ์ด ์—†๋‹ค๋Š” ๋œป์ด๊ธฐ ๋•Œ๋ฌธ์—, ๋‹ค์Œ์˜ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•œ๋‹ค.

sudo chown -R $USER /usr/local/lib/node_modules