Dustyn Eskelson Posted February 1, 2021 Posted February 1, 2021 When you are on your profile page and try and toggle between NPM/Yarn the instructions change but the code in step 1 doesn't.
ZachSaucier Posted February 1, 2021 Posted February 1, 2021 Hey Dustyn and welcome to the GreenSock forums. 13 minutes ago, Dustyn Eskelson said: When you are on your profile page and try and toggle between NPM/Yarn the instructions change but the code in step 1 doesn't. You're quite correct That's because they share the first step.
Dustyn Eskelson Posted February 1, 2021 Author Posted February 1, 2021 I could have sworn, when I first saw this in my profile they were different.
ZachSaucier Posted February 1, 2021 Posted February 1, 2021 7 minutes ago, Dustyn Eskelson said: when I first saw this in my profile they were different. Probably so! We recently updated the instructions because the old ones had some edge cases where the Yarn instructions weren't working.
Dustyn Eskelson Posted February 1, 2021 Author Posted February 1, 2021 So I’m noticing an error with yarn and projects where I don’t have gsap importing. It seems it’s looking to your registry in order to retrieve the modules. Specifically browser sync.
ZachSaucier Posted February 1, 2021 Posted February 1, 2021 What error are you facing? Can you please provide some additional information about how to recreate the issue? Did this issue occur with the old installation instructions? 6 minutes ago, Dustyn Eskelson said: Specifically browser sync. Do you mean Browsersync?
Dustyn Eskelson Posted February 1, 2021 Author Posted February 1, 2021 This error when I try and run yarn install or yarn add. error An unexpected error occurred: "https://npm.greensock.com/browser-sync: You must be logged in to install/publish packages.".
Dustyn Eskelson Posted February 1, 2021 Author Posted February 1, 2021 I have resolved it... seems I may have had some old settings in my global .yarnrc file setting my registry to npm.greensock.com/ 1
studioalloy Posted February 2, 2021 Posted February 2, 2021 I don't know if I have the same issue, but I had created a template (two months ago or so) for myself from which I start new projects. I had followed the Yarn installation guide and everything works great. Now I found that I also version controlled my `yarn.lock` file which keept installing GSAP 3.5.1. In this particular project I've updated GSAP `yarn upgrade gsap` (to 3.6.0), but now I get this error while `import { gsap } from 'gsap';` I've changed nothing else in my project. https://gist.github.com/mvaneijgen/03a40d98d901cacb114c63e7e9dd0dd7 Has something changed from 3.5.1 to 3.6.0 with this way of using Yarn and authtokens?
ZachSaucier Posted February 2, 2021 Posted February 2, 2021 1 hour ago, studioalloy said: I get this error while `import { gsap } from 'gsap';` I've changed nothing else in my project. https://gist.github.com/mvaneijgen/03a40d98d901cacb114c63e7e9dd0dd7 That errors looks like GSAP is not found like it hasn't been installed. 1 hour ago, studioalloy said: Has something changed from 3.5.1 to 3.6.0 with this way of using Yarn and authtokens? Yes, slightly. Previously users edited the .yarnrc file and .npmrc file. Also the installation command was slightly different. We recommend the new way of doing things as there were certain specific scenarios that didn't work with the old way. Please remove whatever you added to your .yarnrc file related to GSAP, try the new approach, and let us know how it goes. Or use NPM instead of yarn 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now