I've verified Emmet working when Node is installed installed the following
ways:

- from the Node.js installer package, installed in /usr/local/bin
- from Homebrew, installed in /usr/local/bin
- from Homebrew on Apple Silicon, installed in /usr/local/bin

Once it's installed that way, I'd personally recommend installing Emmet
globally (e.g., "node install -g emmet").

The method that BBEdit uses to find node should work whenever node is
installed on your shell path as BBEdit sees it. That is not necessarily how
your shell prompt sees it! Path modifications that are set in .zshenv or
.zprofile (or your shell's equivalents) should work, but if they're set in
.zshrc (or equivalent), I don't think they will.

Installing it via nvm is therefore... tricky, because it's doing a lot of
interactive path trickery with your shell to work. If you really want to
try to have it work solely with nvm you might try ensuring you've (a) added
the nvm initialization lines to .zshenv or .zprofile, NOT .zshrc; (b) set a
global default version of node with "nvm alias default node"; (c) ensured
that Emmet is installed in that global default version.

I don't know if that will work, because I haven't tested it, and even if it
does work, it means you'll need to reinstall Emmet every time you change
the global default.

tl;dr: I am sure nvm is lovely and kind to small children and animals, but
maybe install a system version of node globally and stick Emmet in that.


On Thu, Jul 22, 2021 at 4:39 AM Edzard de Ranitz <[email protected]> wrote:

> After some trail and error i got Emmet working. nodes_modules folder in
> Home Directory does not sound correct.
>
> /usr/local/ and various sub folders is where it all should go.
>
> https://davescripts.com/location-of-nodejs-files-on-mac-os-x
>
> I used the installer form https://nodejs.org/en/
>
> Best...
>
> On Tuesday, 20 July 2021 at 09:52:57 UTC-3 Alain Paradis wrote:
>
>> I'm a hobbyist level user.
>>
>> I'd like to use Emmet with BBedit 14. I *think* I have it properly
>> installed, but expansions aren't happening. I've installed Emmet. I have a
>> nodes_modules folder in my Home Directory with an Emmet folder in it. There
>> are snippets files in the folder. Still, no completions.
>>
>> Any help would be appreciated. Thx.
>>
> --
> This is the BBEdit Talk public discussion group. If you have a feature
> request or need technical support, please email "[email protected]"
> rather than posting here. Follow @bbedit on Twitter: <
> https://twitter.com/bbedit>
> ---
> You received this message because you are subscribed to the Google Groups
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/bbedit/762524bf-cb44-445e-b2f0-d473bfba177an%40googlegroups.com
> <https://groups.google.com/d/msgid/bbedit/762524bf-cb44-445e-b2f0-d473bfba177an%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "[email protected]" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/CA%2BGozv2t9M%3DOGR%2B5cU%3DsRfEpUjf9UASQfsOucu-j9UMq4Eht9w%40mail.gmail.com.

Reply via email to