๐Ÿค ์€์ง€log ๐Ÿค

[ERROR] You must sign up for private packages (npm ERR! code E402) ์˜ค๋ฅ˜ ๋ฐœ์ƒ์‹œ ๋ณธ๋ฌธ

๐Ÿฅ TIP

[ERROR] You must sign up for private packages (npm ERR! code E402) ์˜ค๋ฅ˜ ๋ฐœ์ƒ์‹œ

Eun_zii 2022. 10. 26. 18:13

npmjs ๋กœ publish๋ฅผ ์‹คํ–‰ํ• ๋•Œ ์•„๋ž˜์™€ ๊ฐ™์ด ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

 

 

npm ERR! code E402
npm ERR! 402 Payment Required - PUT https://registry.npmjs.org/@- You must sign up for private packages

 

private package ๋กœ ํผ๋ธ”๋ฆฌ์‹ฑ ํ•˜๋ ค๊ณ  ํ•ด์„œ ์˜ค๋ฅ˜๊ฐ€ ๋‚˜๋Š”๊ฒ๋‹ˆ๋‹ค. ( private package๋Š” ์œ ๋ฃŒ์„œ๋น„์Šค ) 

--access=public ์„ ์ถ”๊ฐ€ํ•˜๋ฉด ํ•ด๊ฒฐ๋ฉ๋‹ˆ๋‹ค.

 

npm publish --access=public

 

728x90