Can you use `npm link` with a nix shell?

I have 2 separate node applications, one of which is dependent on the other. In this case I would expect npm link to allow one to reference the other, but with NixOS I get the following

The node_modules directory does exist.

I am running the two separate apps within nix-shell -p nodejs_21 shell, which I thought would the npm linking to work. From the looks of it everything within the /nix/store/ is read-only (which makes sense). So is using npm link possible?