Alex Gusev Alex Gusev - 3 years ago 130
Git Question

npm: install module with repo data

How can I install github project into

so that
folder will contain

I have tried:

npm install git+

subfolder was missed in the target

Probably there is some other way to develop other modules (from other repos) from main application?

Answer Source

If you really need it, you could add the .git folder after the npm installation:

cd ./node_modules/project/
git clone --bare .git
cd .git
git config --local --bool core.bare false

That is using a bare clone that you transform into a regular repo.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download