Open airtonix opened 8 years ago
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: