Can you install NPM and Git under a standard user account?
I have never had to invoke sudo when using git, besides during the install process.

For npm, you can configure it to install global packages in a directory your standard user has full access to using this guide.