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
Description
I'm finding that after installing node via Homebrew onto WSL, .npm-global isn't being added to $PATH. Maybe it's not supposed to, but given the tutorial instructions, this will be a stumbling block for those utilizing WSL and/or unfamiliar with such things. For now I'm simply adding .npm-global manually to the WSL $PATH as a fix.
Steps to reproduce
After installing gatsby-cli globally in WSL, which gatsby would return the path for gatsby from the Windows filesystem... (basically C:/Users/<USER>/AppData/Roaming/npm/gatsby). I have since deleted this instance as I no longer need it there. After confirming gatsby shows up in npm -g ls --depth=0, realized .npm-global was not added to $PATH.
Also too, part of this is the Microsoft decision to have WSL import the Windows OS Path vars on top of it's own. Thusly echo $PATH in WSL for me returns several /mnt/c/** paths.
Env Specs
- OS: WSL (Ubuntu 18.04) on Windows 10 Pro (build 17763)
- Homebrew: v2.1.1
- Node: v11.14.0 (brew)
- Gatsby: v2.5.12 (globally installed)
- Coffee: Enthiopian Yirgacheffe
- Location: West Texas
- Other: Gatsby Fanatic!
Description
I'm finding that after installing node via Homebrew onto WSL,
.npm-global
isn't being added to $PATH. Maybe it's not supposed to, but given the tutorial instructions, this will be a stumbling block for those utilizing WSL and/or unfamiliar with such things. For now I'm simply adding.npm-global
manually to the WSL $PATH as a fix.Steps to reproduce
After installing gatsby-cli globally in WSL,
which gatsby
would return the path for gatsby from the Windows filesystem... (basicallyC:/Users/<USER>/AppData/Roaming/npm/gatsby
). I have since deleted this instance as I no longer need it there. After confirming gatsby shows up innpm -g ls --depth=0
, realized.npm-global
was not added to $PATH.Also too, part of this is the Microsoft decision to have WSL import the Windows OS Path vars on top of it's own. Thusly
echo $PATH
in WSL for me returns several/mnt/c/**
paths.Env Specs
- OS: WSL (Ubuntu 18.04) on Windows 10 Pro (build 17763)
- Homebrew: v2.1.1
- Node: v11.14.0 (brew)
- Gatsby: v2.5.12 (globally installed)
- Coffee: Enthiopian Yirgacheffe
- Location: West Texas
- Other: Gatsby Fanatic!
Gatsby Info
The text was updated successfully, but these errors were encountered: