Best practice for NodeJS development

I’ve haven’t tried importNpmLock and importNpmLock.hooks.linkNodeModulesHook yet (they were added only “recently”), but they look promising for local development.
See Nixpkgs Reference Manual for usage guide.