I have the following directory structure:
/some_project source.js package.json
I would like to install the dependencies for some_pr
You can use the npm install variant with the --prefix option. In your scenario the folder and prefix will be the same:
npm install
--prefix
npm --prefix ./some_project install ./some_project