conda-forge / nodejs-feedstock

A conda-smithy repository for nodejs.
BSD 3-Clause "New" or "Revised" License
5 stars 37 forks source link

Adding the `node_modules/.bin` to the path in the activation. #356

Closed ruben-arts closed 3 months ago

ruben-arts commented 4 months ago

Comment:

He all,

Would it make sense to add the node_modules/.bin path to the actual path on activation of an environment with nodejs?

It would allow me to directly execute the binaries installed in the environment by npm without extra configuration.

Thanks in advance!

xhochy commented 4 months ago

It doesn't make se sense as you can activate an environment from anywhere so $PWD/node_modules/.bin is not ensure to be correct.

ruben-arts commented 3 months ago

I see, my bad. I was thinking it would locate it into the prefix. But on a second try I see it's indeed going to pwd. Closing the issue. Thanks for the response.