Jump to content
Search Community

Can't deploy to Vercel - 403 Forbidden Error

mmetahero test
Moderator Tag

Recommended Posts

I'm trying to deploy my app to vercel. I tried with these two tutorials:




I keep getting error like below:

error An unexpected error occurred: "https://npm.greensock.com/@gsap%2fshockingly/-/shockingly-3.11.4.tgz: Request failed \"403 Forbidden\"".


To summarize what I did:

1. Installed gsap shockingly package with command below:

npm install gsap@npm:@gsap/shockingly

2. Created ".npmrc" file in the root dir of my project with content like below:


3. Set up environment variables in the Vercel project using commands below:

vercel env add NPM_RC production < ~/.npmrc
vercel env add NPM_RC preview < ~/.npmrc
vercel env add NPM_RC development < ~/.npmrc


4. Verified in Vercel that ENVs are indeed created with correct values


5. Initialized deploy.


To be clear installing locally works as intended. 


Please help :(




  • Like 1
Link to comment
Share on other sites

I managed to deploy GSAP Shockingly to Vercel using yarn and have posted a solution on the link below. Might be worth checking for users who don't want to switch their projects over to npm.



  • Like 4
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.
  • Create New...