Skip to content

How to reference local modules from git repo #471

@Laro88

Description

@Laro88

What it the proper way to reference modules in a local git repo?
I prefer to have the solution and project files in a directory structure, however I keep getting git errors as the referenced repository TestNodeDriver contains a directory structure, and therefore does not have a package.json in the root of the repo.
What I need is to keep my local git repo internal and make it reusable for other projects. Is there a way to do make npm use the a subdirectory as root looking for the package.json file, or do I have to create a "clean" module without .sln - and thereby breaking the nice VS integration with git?
I am open to all suggestions / advice.

"repository" :
  { "type" : "git"
  , "url" : "http://internalserver/gitserver/TestNodeDriver.git"
  },

This is breaking as the git clone used in npm will include the underlying folder structure.

My issue goes along the lines of this 2974 - I am just trying to find out how to work with the limitations in npm

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions