You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 11, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 11, 2022. It is now read-only.
npm creates incorrect cmd shim for jezebel package on windows #3380
The source code for cmd-shim is here and a pull request to fix this would be welcome. However, it should be easier in this case to just make jezebel not do that, since there's no real reason why it would need to do that.
I'll try to create a fix. I see your point but I think it's best if the shim creation either fails if it can not extract the command from the file successfully or handles the given case correctly. My proposal would be to go for the latter option.
Note: I do acknowledge that this is a bug in cmd-shim, but like many bugs, it's not worth fixing until and unless there's a real need for it, because the fix adds complexity.
Activity
ForbesLindesay commentedon Apr 28, 2013
The source code for cmd-shim is here and a pull request to fix this would be welcome. However, it should be easier in this case to just make jezebel not do that, since there's no real reason why it would need to do that.
basbossink commentedon Apr 28, 2013
I'll try to create a fix. I see your point but I think it's best if the shim creation either fails if it can not extract the command from the file successfully or handles the given case correctly. My proposal would be to go for the latter option.
isaacs commentedon Apr 29, 2013
It looks like Jezebel is trying to use NODE_PATH as a polyfill for the now-removed require.paths.
That is not supported, recommended, safe, or guaranteed to work reliably. You should report the bug to them.
isaacs commentedon Apr 29, 2013
Note: I do acknowledge that this is a bug in cmd-shim, but like many bugs, it's not worth fixing until and unless there's a real need for it, because the fix adds complexity.
basbossink commentedon Apr 29, 2013
As you can see I reported the issue to jezebel, do you see a legitimate reason to add support for the use of variables in cmd-shim?
ForbesLindesay commentedon Apr 29, 2013
Yes, in this case it's definitely a higher priority to just fix jezebel.
One option would be to just fix
cmd-shimso that it reports this as an error and states that it's not supported?fix: Handle environment variables properly