Share Posted March 9 Hello, I am trying to get the gsap business plugins installed into a PNPM project. I followed the private registry instructions and can use the plugins locally, however, when I make a commit to github the commit fails (see screenshot). If I remove the .npmrc file from the gitignore then I no longer get an error, but, I don't want the .npmrc file GitHub because it contains my api key. Does anyone have any advice how to get around those errors while not including the .npmrc file? Link to comment Share on other sites More sharing options...
Share Posted March 10 Hi, There's an error with the image so I can't see it 🤷♂️ I've created repos with the the .npmrc file in the gitignore file and I can't recall having any issues when pushing changes to the remote. Maybe this could be more related to a got thing than anything else. Unfortunately git is not something I know a lot. Maybe @Prasanna could have some ideas to get around this. Is almost 1 AM here so tomorrow morning I'll jump right into creating some repos in GitHub with the .npmrc file in the gitignore file and see what happens and report back. Sorry I can't be of more assistance about this 😞 Happy Tweening! Link to comment Share on other sites More sharing options...
Share Posted March 10 Hi, I created a simple repo that includes the .npmrc file in the .gitignore list and I can't reproduce the issue you're reporting: https://github.com/rhernandog/npmrc-test Here is the .gitignore file: https://github.com/rhernandog/npmrc-test/blob/master/.gitignore#L25 And you can see that in the package.json file I installed the shockingly green package: https://github.com/rhernandog/npmrc-test/blob/master/package.json#L12 Which is being used here: https://github.com/rhernandog/npmrc-test/blob/master/src/App.vue#L10-L20 It would be great if you could provide more information in order to see what could be the issue. Happy Tweening! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now