Can we make npm link more ergonomic #113
-
I use both npm link and yarn link, they're great features. Is there something we can do similar to Workflow of npm link
Step 4 is cumbersome, are there some ideas that make this easier?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I guess a challenge I could see with the "pop" model would be that something like that information would be session state, which to the best of my knowledge npm cli doesn't really have. /cc @npm/cli about how we could go about this. |
Beta Was this translation helpful? Give feedback.
-
So,
or even:
Or, if your shell supports it (most bash versions do):
Supporting |
Beta Was this translation helpful? Give feedback.
So,
npm link
can take a folder name (or any other package spec) as an argument. How about this?or even:
Or, if your shell supports it (most bash versions do):
Supporting
npm link -
to mean "the last thing globally installed" would require tracking new information about the global install space, which we don't currently do, as @MylesBorins said. I'm not opposed to adding that, but it's gonna be mor…