I'm trying to get a simple POC going that somewhat mimics our monorepo and I'm running across a problem that I'm hoping someone can help with.
I set up everything seemingly like this example project, but when I run an npm i I get a message stating that my dependency can't be found. I can reproduce it by slightly modifying this repo...
If I change all the module names from @ryancavanaugh/* to @foo/* (the name of the module and the names of the deps) in the package.json files, I get a similar error...
I did a big find/replace to replace it with foo, go into pkg2, wipe out package-lock.json, and run npm i. I get npm ERR! 404 Not Found: @foo/pkg1@^3.0.2.
I can't tell if I'm doing something wrong or if I'm just missing something.
I really appreciate the repo though. It does seem to be a great example.
I'm trying to get a simple POC going that somewhat mimics our monorepo and I'm running across a problem that I'm hoping someone can help with.
I set up everything seemingly like this example project, but when I run an
npm iI get a message stating that my dependency can't be found. I can reproduce it by slightly modifying this repo...If I change all the module names from
@ryancavanaugh/*to@foo/*(thenameof the module and the names of the deps) in thepackage.jsonfiles, I get a similar error...I did a big find/replace to replace it with
foo, go intopkg2, wipe outpackage-lock.json, and runnpm i. I getnpm ERR! 404 Not Found: @foo/pkg1@^3.0.2.I can't tell if I'm doing something wrong or if I'm just missing something.
I really appreciate the repo though. It does seem to be a great example.