0

I was trying to use npm link to link to components and code which we use in different JS projects. Both the projects, and the shared components and packages are in the same Git repository. Using 'npm link' allowed me to access such a package from a project, but added nothing to the package.json of the project. Which means that even if all the packages and pojects are in the same repository, since it is not recorded in the package.json it will break the project for other members in the team. I tried adding "-save" to the command in the project directory ("npm link -save" but it had no effect. Is there a way to make 'npm link' work for teams?

Ben Carp
  • 24,214
  • 9
  • 60
  • 72

0 Answers0