Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Downloads project from git instead of using linked version #10203

Closed
andy-hanson opened this issue Nov 1, 2015 · 2 comments
Closed

Downloads project from git instead of using linked version #10203

andy-hanson opened this issue Nov 1, 2015 · 2 comments

Comments

@andy-hanson
Copy link

I have a package.json looking like:

{
    "dependencies": {
        "mason-compile": "mason-lang/mason-compile"
    }
}

I have already run npm link ../mason-compile and intend to use my local version of that project.

However, when I run npm install, npm downloads the online mason-compile's dependencies and installs those to node_modules. (The linked version was a dummy package with no dependencies, so nothing else should have been installed.)

@smikes
Copy link
Contributor

smikes commented Nov 5, 2015

Thanks for bringing this up.

I believe that this is expected behavior. Running npm install will cause npm to try to install all dependencies as specified, and in this case you have specified the mason-compile module using the git shorthand.

I don't know, architecturally, how hard it would be to change this behaviour.

@npm-robot
Copy link

We're closing this issue as it has gone seven days without activity and without being labeled. If we haven't even labeled in issue in seven days then we're unlikely to ever read it.

If you are still experiencing the issue that led to you opening this or this is a feature request you're still interested in then we encourage you to open a new issue. If this was a support issue, you may be better served by joining package.communty and asking your question there.

For more information about our new issue aging policies and why we've instituted them please see our blog post.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants