[Nest.js] Failed to execute command: npm install --silent

박쀀석·2025λ…„ 3μ›” 24일

Error

λͺ©λ‘ 보기
10/10

Error

πŸ”₯ 문제

NestJs의 μƒˆλ‘œμš΄ ν”„λ‘œμ νŠΈλ₯Ό μƒμ„±ν•˜λŠ” κ³Όμ •μ—μ„œ μ—λŸ¬κ°€ λ°œμƒν–ˆλ‹€.

npm i -g @nestjs/cli
nest new project-name

ν™˜κ²½μ…‹νŒ…μ΄ 잘 λͺ» λλ‚˜ μ‹Άμ–΄ 이것 저것 ν•˜λŠ”λ° μ—­μ‹œλ‚˜ μ•ˆλœλ‹€. μ„œμΉ­μ„ ν•΄λ³΄λ‹ˆ KT인터넷 망과 κ΄€λ ¨λ˜μ–΄ μžˆλŠ” μ΄μŠˆκ°€ μžˆλ‹€κ³  ν•œλ‹€.

πŸ”₯ ν•΄κ²°

npm의 mirror μ‚¬μ΄νŠΈλ‘œ λ°”κΎΈμ–΄μ£ΌλŠ” 방법이 μžˆμ—ˆλ‹€.

npm config set registry https://registry.npmjs.cf/

μœ„ μ½”λ“œλ₯Ό μž…λ ₯ν›„ ν”„λ‘œμ νŠΈλ₯Ό λ‹€μ‹œ μƒμ„±ν•œλ‹€.

nest new project-name

이후 λ‹€μ‹œ 곡식 npm registry둜 λ³€κ²½ν•΄μ€€λ‹€.

npm config set registry https://registry.npmjs.org/
profile
λŠλ¦¬μ§€λ§Œ νƒ„νƒ„ν•œ 개발자 1λͺ… λΉ λ₯Έ 개발자 10λͺ… μ•ˆλΆ€λŸ½λ‹€.

0개의 λŒ“κΈ€