How to install Club Greensock packages on netlify

Fiona Paul


Fiona Paul
Steps to install club greensock packages in netlify
- Add a file named
.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}
If you are running the app in the dev environment, replace ${PRIVJS_TOKEN}
with the token provided to you by Greensock or PrivJs
- Install the package using the following command:
$ npm install gsap@npm:@gsap/shockingly
if you are using yarn package manager then you need to run:
$ yarn add @gsap/shockingly gsap@npm:@gsap/shockingly
Feel free to change /shockingly
to any other club greensock package name of your choice.
- Finally you need to add the
PRIVJS_TOKEN
value to your environment variables in netlify site settings:
That's it! If you face any issues, write to us at support@privjs.com
and we would be happy to help you.