brackets-userland / brackets-npm-registry

Extension to install other extensions with npm
MIT License
44 stars 8 forks source link

still having error [object object] when trying to install brackets-eslint on ubuntu #5

Closed yahyaKacem closed 9 years ago

yahyaKacem commented 9 years ago

Hi, I'm using:

- Ubuntu 14.04
- Brackets Release 1.2 experimental build 1.2.0-15697 (release 8f82e2a97)

I did what you said in the #3 and updated to latest version of this plugin through npm since it gave me the same error when I tried to update through the GUI update worked but when I tried to install the brackets-eslint I get the same error with this message in console:

error

zaggino commented 9 years ago

Hi @yahyaKacem , you need to re-install this extension, self-updating doesn't work yet. Use these steps (delete the current brackets-npm-directory): https://github.com/zaggino/brackets-npm-registry#linux The error in console should change.

zaggino commented 9 years ago

@yahyaKacem do you have node.js installed on your linux?

yahyaKacem commented 9 years ago

yes, I have node v0.12.0 installed through nvm. the new error is this: error2

zaggino commented 9 years ago

can you let me know where your node executable is when installing with nvm? seems like extension is not able to find your node

zaggino commented 9 years ago

which node should return some path

yahyaKacem commented 9 years ago

node path:

/home/yahya/.nvm/versions/node/v0.12.0/bin/node
yahyaKacem commented 9 years ago

I think an option to set the node path is a better solution here don't you think? I'm using nvm because sometimes I get some tools that are not compatibale with the current version of node so I downgrade to v0.11 or v0.10 so an option to set the node path is a better solution here.
Also the path for the v0.12 in my Ubuntu 14.04 is this:
/home/yahya/.nvm/versions/node/v0.12.0/bin/node
but for my Ubuntu 12.04 is:
/home/yahya/.nvm/v0.12.0/bin/node.

zaggino commented 9 years ago

Extension looks for node in system path and then some predefined paths, but I'll have to implement the ability to set your custom path it seems.

zaggino commented 9 years ago

Available in the latest version 0.1.3, please test if you'll have some time. image

zaggino commented 9 years ago

Closed as the above issue has been resolved with a new feature.

zaggino commented 9 years ago

update, found a better way to handle this so above screenshot is actually deprecated after a few hours ... everything should now work without setting the node path, extension will link to the node executable which is included with Brackets