Jump to content
Search Community

GSAP npmrc NPM Workspaces and monorepo

Nye test
Moderator Tag

Recommended Posts

Figured I'd post about this in case someone runs into it.

For clarity: Running Windows 11 22H2

 

Problem

I've got a monorepo set up using NPM workspaces for my frontend, backend, and admin apps. My frontend uses an .npmrc file to install GSAP's Shockingly Green Plugins. The file was located in my frontend folder, where it was ignored by workspaces: npm WARN ignoring workspace config..., meaning gsap@npm:@gsap/shockingly gsap:npm@install results in:npm ERR! 404 Not Found - GET https://registry.npmjs.org/@gsap... - Not found.

 

Solution

Move the.npmrc file to the root folder of your monorepo. Moving the file here, solves this issue, as it isn't ignored by NPM Workspaces.

 

Hope this helps,

Nye

  • Thanks 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.
×
×
  • Create New...