This is how you install the core library:
npm i @box2d/core
yarn add @box2d/core
You can install the other packages in exactly the same way:
@box2d/lights
@box2d/particles
@box2d/controllers
@box2d/debug-draw
The Core Library →