Cursor ignoring .npmrc

Been having trouble this past week installing dependencies in Cursor.

Have modules in a private registry so have a GitHub PAT in my .npmrc file referenced(even directly pasted the token instead of an env var), regardless keeps returning 401: unauthorized on my dependency.

I see when I do npm config (list, get, set)
I can confirm to it’s using the correct .npmrc set up.

Also doubled checked node+npm versions, forced cleaned my npm cache clean —force

—-

When I install deps in another terminal outside of Cursor or from another IDE all works perfectly fine with the same .npmrc and packages.

Not clear what’s different.

Also keep in mind, a week ago when I installed deps from my package.json it worked fine in Cursor.