Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does not detect npm as installed by homebrew - macOS #4

Closed
StrangeNoises opened this issue Jun 30, 2017 · 9 comments
Closed

does not detect npm as installed by homebrew - macOS #4

StrangeNoises opened this issue Jun 30, 2017 · 9 comments

Comments

@StrangeNoises
Copy link

As per subject. npm is installed on my system using homebrew, but the Settings->Plugins tab does not recognise it. I suspect that might be because it's not in a login shell itself (see my other issue) and thus homebrew's path is not in $PATH.

@gotama
Copy link

gotama commented Jun 30, 2017

Ive installed npm via pkg and homebrew and can confirm neither pick up

@DAlperin
Copy link

DAlperin commented Jul 1, 2017

I do not know if this is the correct place for this, however I realized that I have npm installed via nvm and yet it is informing me in the plugins tab that: "NPM not installed"

which npm returns /Users/**********/.nvm/versions/node/v6.9.0/bin/npm
npm --version returns 3.10.8

@Eugeny
Copy link
Owner

Eugeny commented Jul 5, 2017

@DAlperin @gotama, please retry with the current alpha, which is now runs a login shell and thus should pick up your custom $PATH automatically

@Eugeny
Copy link
Owner

Eugeny commented Jul 5, 2017

Otherwise closed via #10

@StrangeNoises
Copy link
Author

Not working for me in alpha 15 (apparently the latest though says 4 days old?)

npm is in /usr/local/bin/npm as installed by homebrew. This is in $PATH, being defined in /etc/paths and thus read by /usr/libexec/path_helper during the running of /etc/profile. In other respects, default login shell is working for me, which implies reading all that stuff.

Does the Settings dialogue run in a default login shell?

@pdelre
Copy link

pdelre commented Jul 7, 2017

Same issues in alpha 18: Version 1.0.0-alpha.18 (1.0.0-alpha.18.96).

$ which npm
/usr/local/bin/npm

$ echo $PATH
/Users/pdelre/Library/Python/2.7/bin:/Users/pdelre/bin:/usr/local/opt/php70/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin

$ npm -v; echo $?
5.0.3
0

@compuguy
Copy link

Same issue in alphas 21 and 22.

@compuguy
Copy link

Still valid with alpha 28.

@karlokolar
Copy link

Still valid for alpha 31

Eugeny added a commit that referenced this issue Mar 18, 2018
Eugeny pushed a commit that referenced this issue Jul 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants