mvuidev Posted November 12, 2020 Share Posted November 12, 2020 Hello guys, I'm trying to install GSAP using PNPM, doing the following : # Add .npmrc file in my project root : //npm.greensock.com/:_authToken=xxxxxxxxxxxxxxxxxxx @gsap:registry=https://npm.greensock.com # Install GSAP : pnpm install gsap@npm:@gsap/business But i get : ERROR GET https://registry.npmjs.org/@gsap%2Fbusiness: Not Found - 404 @gsap/business is not in the npm registry, or you have no permission to fetch it. Seems like it's trying to fetch npm registry instead of gsap's one. To be sure, I created .npmrc file in my user dir too (~/.npmrc). Any idea please ? 🙄 Link to comment Share on other sites More sharing options...
ZachSaucier Posted November 12, 2020 Share Posted November 12, 2020 Hey mvuidev. Thanks for supporting GreenSock with a Business Green membership! This is the first time I've heard about pnpm. Maybe it'd be good to ask pnpm's support/forums how to do this sort of thing? We'd appreciate if you posted back here if you figure out how to do the recommended install with pnpm. I was able to install GSAP via the private registry with pnpm using the following (once I've put my token in the .npmrc file): pnpm install gsap --registry https://npm.greensock.com However this method doesn't sync between different installs as easily as the recommended method. For example if you do pnpm install with this method it won't install from the private registry - you need to use the above install command each time. With the recommended method, that's not the case 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