Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Gr0x

Netlify deploy error with greensock-member

Go to solution Solved by Gr0x,

Recommended Posts

Hi ! I put this line :

registry=https://npm.greensock.com

in the .npmrc file and it worked ! But Cassie said it could fail because of the other packages... so I deleted it and now each time I push on Github it's still working. 

Have you tried it ? 

Link to comment
Share on other sites

So you went from:

--------------------------

always-auth=true
@gsap:registry=https://npm.greensock.com/
//npm.greensock.com/:_authToken=${NPM_TOKEN}

--------------------------

to:

--------------------------

always-auth=true
registry=https://npm.greensock.com
//npm.greensock.com/:_authToken=${NPM_TOKEN}

--------------------------

 

Am I correct? No I haven't tried it yet, gonna do it asap 😃

 

Link to comment
Share on other sites

  • Solution

Solution: 

1: Create .npmrc file in root of your project.

2: write following in the .npmrc file:

--------------------------

always-auth=true
registry=https://npm.greensock.com
//npm.greensock.com/:_authToken=${NPM_TOKEN}

--------------------------

3: Go to Netlify and create an enviroment variable called :         NPM_TOKEN

4: Push it up to your git repo and enjoy

 

Shout out to Cassie, Prasanna and Sybilrondeau. ❤️

  • Like 4
Link to comment
Share on other sites

I did nothing, @Cassie did ! But be aware, as she said, it can also break the installation as it will be ok for gsap but not the other packages, so it's not so much a good solution for everybody.

  • Like 1
Link to comment
Share on other sites

@Gr0x - looking at the .npmrc file content that you provided, it should throw errors in while running $npm install your local environment (unless you specify env vars). But it should be working fine in netlify.

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×