이 경고는 패키지 구성 요소가 빠져 있다는 경고입니다. 이 책을 공부할 때는 이 경고를 무시해
도 됩니다.
npm
을 통해 패키지를 배포하려 한다면 이 경고에 신경 써야 하지만, 이 책에서는
배포에 관해 설명하지 않습니다.
이제
package
.
json
파일을 보면 의존성 리스트에 언더스코어가 있습니다. 의존성 관리가 가
능한 것은,
package
.
json
파일에서 패키지 이름과 버전 번호를 읽고 필요 패키지를 다시 내
려받아 설치할 수 있기 때문입니다. 지금 해봅시다.
node
_
modules
디렉터리를 다시 삭제
하고,
npm
install
명령을 내립니다. 네, 패키지 이름을 쓰지 않는 것이 맞습니다.
npm
은
package
.
json
파일을 읽고 필요한 패키지를 자동으로 설치합니다. 새로 만들어진
node
_
modules
디렉터리를 보면 확인할 수 있습니다.
2.2.6
빌드 도구: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.