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
Hey! Thanks for sharing. I didn't notice this issue at all, sorry.
That is unfortunate that they removed this command.
Before using npm bin we used to recursively look for a node_modules folder, but that also had issues.
Maybe until we find something people can at least refer to your workaround.
I have also been using the workaround @hyakt mentions and that works fine for me on Linux. It didn’t work well on Windows, though (because the default shell is CMD still). It would probably make sense to use some elisp to concatenation in the .bin.
Activity
ybiquitous commentedon Oct 25, 2022
npm v9 has been released and will be
lateston Nov 9, according to the announcement.ybiquitous commentedon Oct 25, 2022
I've found the following workaround via
npm exec, though the way may be a bit hacky:[-]`npm bin` will be removed in npm@9.0.0[/-][+]`npm bin` is removed in npm@9.0.0[/+][-]`npm bin` is removed in npm@9.0.0[/-][+]`npm bin` is removed in npm v9[/+]codesuki commentedon Nov 14, 2022
Hey! Thanks for sharing. I didn't notice this issue at all, sorry.
That is unfortunate that they removed this command.
Before using
npm binwe used to recursively look for anode_modulesfolder, but that also had issues.Maybe until we find something people can at least refer to your workaround.
ybiquitous commentedon Nov 14, 2022
The following workaround using
npm rootmay be better:EDIT: Though this is still tricky.
[emacs] Fix add-node-modules-path with npm 9.x
hyakt commentedon Jun 16, 2023
I used to be grateful for the workaround at #23 (comment), but now it seems that I need to set the following I have to configure it as follows.
zach-delong commentedon Oct 28, 2023
I have also been using the workaround @hyakt mentions and that works fine for me on Linux. It didn’t work well on Windows, though (because the default shell is CMD still). It would probably make sense to use some elisp to concatenation in the .bin.
fix: npm bin is removed
Fix add-node-module-path for removing `npm bin` command
fix(emacs): adapt add-node-modules-path for npm v9
fix(emacs): adapt add-node-modules-path for npm v9
fix(emacs): adapt add-node-modules-path for npm v9
fix(emacs): adapt add-node-modules-path for npm v9