Why does an npm module I wrote install so many packages after creating project with create-react-app?
问题 I wrote this npm module, react-heartbeat, using nwb. When I install this module in a new project, npm i react-heartbeat , just after running npm init it takes less than 2 seconds and only installs 1 package. When I install this module, again npm i react-heartbeat , after creating a project with create-react-app , it takes nearly 3 minutes, adds 420 packages, removes 218 packages and updates 1257 packages . What am I doing wrong? My npm module is very simple, just 1 React component. It has no