Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npmd install (without -g) does not create symlinks to executables (from .bin) #72

Open
joeytwiddle opened this issue Jul 13, 2014 · 6 comments

Comments

@joeytwiddle
Copy link

If you do npm install browserify it will add a symlink to the .bin folder:

./node_modules/browserify/...
./node_modules/.bin/browserify -> ../browserify/bin/cmd.js

But if you do the same with npmd then you don't get a symlink in the .bin folder.

(This might not be a common use-case since most people will use -g to install executables.)

This may be related to #31 which mentions compiling.

Would it be possible for npmd to download the package to its cache (if not already there), and then ask npm to perform the actual install from that downloaded package? (I guess npmd cannot work this way because npm would try to handle dependencies itself, and we want npmd to handle dependencies.)

@joeytwiddle joeytwiddle changed the title npmd install (without -g) does not create .bin folder and symlinks npmd install (without -g) does not create symlinks to executables (from .bin) Jul 13, 2014
@dominictarr
Copy link
Owner

It does this when it's a dev dependency, but really it would be good to always have this maybe?

@kenany
Copy link

kenany commented Jul 19, 2014

It does this when it's a dev dependency

Hmm, not as far as I can tell...

{
  "devDependencies": {
    "tape": "^2.1.0"
  }
}
$ npm install
$ ls -A node_modules/
.bin tape

$ rm -rf node_modules/

$ npmd install
$ ls -A node_modules/
tape

@kenany
Copy link

kenany commented Jul 19, 2014

Oh but it does if I explicitly do

$ npmd install tape

But surely npmd install (no args) should do it too for dev dependencies? Separate issue, perhaps?

@dominictarr
Copy link
Owner

so maybe the simplest/best solution is just to allways do it.

@dominictarr
Copy link
Owner

but, yes npmd install should certainly do it for the dev deps.

@tomek-he-him
Copy link

npmd install should certainly do it for the dev deps

I can confirm that it doesn’t on my machine.

And I can confirm that npmd install tape does create the symlinks.

maybe the simplest/best solution is just to allways do it.

That would be great! 👍 Least astonishment.

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

No branches or pull requests

4 participants