I need to run multiple nodeJS applications on my main development machine, which is running a macOS, and a second one, which is a windows system without an internet connection.
Because of the missing internet connection, I cannot run npm install
.
I want to do some work on the windows system, take the projects back home, do also some work on those projects, and push everything to the repository.
So I decided to put all projects on an external SSD drive and I choose pnpm (https://pnpm.js.org/en/) to save disc space as most projects are using nearly the same dependencies. For me, it doesn't make sense to install the same dependencies 30 times, which would blow up my 250GB drive.
pnpm saves all needed dependencies in a store. The directory should be saved on the SSD drive. But this is the problem.
npm config set store-dir /path/to/.pnpm-store
On my Mac, the path would be /Volumes/SsdName/.pnpm-store
and running pnpm install
will save all dependencies in the store on my SSD drive. But on the windows machine, the path is E:\
. That's why I can't start the projects from the external drive on the windows machine.