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
It can be reproduced within docker but also on WSL Ubuntu 18.04, so it seems to be a common problem with the node@12 formula.
Global packages are installed into /home/linuxbrew/.linuxbrew/lib/node_modules but npm.packages points to /home/linuxbrew/.linuxbrew/Cellar/node@12/12.18.4/lib/node_modules (where npm is installed).
I'm not sure whether this can/should be solved in this module or within the homebrew formula for node@12.
node@12 ❌
FROM homebrew/brew:2.4.11
USER linuxbrew
RUN brew install node@12
ENV PATH=/home/linuxbrew/.linuxbrew/opt/node@12/bin:$PATH
RUN npm i -g global-dirs
RUN node -e "console.log(require('/home/linuxbrew/.linuxbrew/lib/node_modules/global-dirs'))"
FROM homebrew/brew:2.4.11
USER linuxbrew
RUN brew install node@14
RUN npm i -g global-dirs
RUN node -e "console.log(require('/home/linuxbrew/.linuxbrew/lib/node_modules/global-dirs'))"
FROM homebrew/brew:2.4.11
USER linuxbrew
RUN brew install node
RUN npm i -g global-dirs
RUN node -e "console.log(require('/home/linuxbrew/.linuxbrew/lib/node_modules/global-dirs'))"
Detected via https://github.com/SAP/ui5-cli/issues/374
This breaks the is-installed-globally module, which is used within update-notifier.
It can be reproduced within docker but also on WSL Ubuntu 18.04, so it seems to be a common problem with the node@12 formula.
Global packages are installed into
/home/linuxbrew/.linuxbrew/lib/node_modules
butnpm.packages
points to/home/linuxbrew/.linuxbrew/Cellar/node@12/12.18.4/lib/node_modules
(wherenpm
is installed).I'm not sure whether this can/should be solved in this module or within the homebrew formula for node@12.
node@12 ❌
node@14 ✅
node ✅
The text was updated successfully, but these errors were encountered: