This is a sample project to demonstrate how to install club greensock packages such as @gsap/simply, @gsap/shockingly, @gsap/business in netlify.
- Add a file names
.npmrc
to the project root with the following contents in it:
always-auth=true
@gsap:registry=https://npm.greensock.com/
//npm.greensock.com/:_authToken=${PRIVJS_TOKEN}
save-exact=true
- Install the package using the following command:
$ npm install gsap@npm:@gsap/shockingly
Feel free to change "/shockingly" to any other club greensock package name of your choice. You need to add the PRIVJS_TOKEN
to your environment variable (preferably .env file).
- Then add the environment variable
PRIVJS_TOKEN
in the Netlify site settings and set the value as the private token provided to you by Greensock:
If you still face any issues; email us at [email protected]