Hello there Netlify pals!
Cassie here from GreenSock.
Our users are having some issues deploying sites on Netlify that are using yarn and our private GSAP registry - which requires a token set as an environment variable through your UI.
There is no issue deploying when users are using npm. Only Yarn.
I’ve managed to recreate the issue on this site:
site name: loving-wilson-ff4891
I have pushed up a yarn.lock file as per this article
if you deploy a site that includes a
yarn.lockfile in the base of the repository, we’ll use Yarn to install dependencies.
And followed the ENV var/Private module instructions given in this doc
The site works locally. But it won’t deploy. Is there something going on with the Netlify build container?
It would be wonderful to get this resolved.
I hope I’ve given you all that you need.
Look forward to hearing from you.
relevant log below
5:46:08 PM: > Successfully installed Yarn 1.22.10! Please open another terminal where the `yarn` command will now be available. 5:46:08 PM: No yarn workspaces detected 5:46:08 PM: Started restoring cached node modules 5:46:08 PM: Finished restoring cached node modules 5:46:09 PM: Installing NPM modules using Yarn version 1.22.10 5:46:09 PM: yarn install v1.22.10 5:46:09 PM: warning package.json: No license field 5:46:09 PM: warning email@example.com: No license field 5:46:09 PM: [1/4] Resolving packages... 5:46:10 PM: [2/4] Fetching packages... 5:46:13 PM: error An unexpected error occurred: "https://npm.greensock.com/@gsap%2fbusiness/-/business-3.8.0.tgz: Request failed \"403 Forbidden\"". 5:46:13 PM: info If you think this is a bug, please open a bug report with the information provided in "/opt/build/repo/yarn-error.log". 5:46:13 PM: info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. 5:46:24 PM: Error during Yarn install 5:46:24 PM: Build was terminated: Build script returned non-zero exit code: 1 5:46:24 PM: Creating deploy upload records 5:46:24 PM: Failing build: Failed to build site