Managing react and node packages on full-stack app

I am building a full-stack app with React and Node. I have 2 package.json one inside ./client (for react) and one in main directory for Node (same directory as server.js).

If I want to install a package for node I just run npm install --save in the main directory. However, if I want to install a React specific package do I navigate to ./client and run npm install or yarn add inside client?

Is there a typical convention for managing packages for React/Node applications?

Yes, your server and your client are two different apps. The server will run on the server and the client will run on the clients computer. That was a mental hurdle for me to realize. I would even have each in it’s own sibling folder - /server for the server and /client for the client, or whatever.