-
Notifications
You must be signed in to change notification settings - Fork 20
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
ignores locally installed esformatter #74
Comments
Looks like this is happening because your code only tries to discover the global npm root. Changing it to something like this should work: def getNpmGlobalRoot():
# determine NPM global root
try:
return subprocess.check_output(["npm", "root", "-g"]).rstrip().decode('utf-8')
except:
# NPM not installed or not accessible
return None
def getNpmLocalRoot():
# determine NPM local root
try:
return subprocess.check_output(["npm", "root"]).rstrip().decode('utf-8')
except:
# NPM not installed or not accessible
return None
# Extend NODE_PATH to make globally installed esformatter requirable
npmRoot = getNpmLocalRoot() or getNpmGlobalRoot() |
meh, even when i globally install esformatter it fails. |
Same here, it fails for globally installed esformatter. I think it might be happening because I am using nvm to install node? |
same issues ... |
For Ubuntu/Mint it looks like only system npm (the one installed with apt-get) with global install of esformatter will work properly. It might work with nvm with some hacking of env configuration, but a proper fix is needed to work with yarn/nvm. |
https://packagecontrol.io/packages/EsFormatter says:
So the situation is this:
Esformatter Settings are this:
Yet I get an alert window dialog saying:
The text was updated successfully, but these errors were encountered: