appcelerator-archive / titanium-code-processor

Other
29 stars 18 forks source link

automatically install titanium cli commands at postinstall #256

Closed dbankier closed 1 year ago

cb1kenobi commented 10 years ago

Hmm, not sure we can do this. "scripts" are run as "nobody" which means that calling "ti config" will be run as "nobody" and "nobody" has access to your home directory, namely ~/.titanium/config.json. I think that Studio automatically calls the tools/install script after npm installing the module.

dbankier commented 10 years ago

It's up to you. Works for me and I don't use studio.

cb1kenobi commented 10 years ago

@dbankier What operating system are you on? What version of Node.js? This needs to work on Node.js 0.8, 0.10 on Mac and Linux. I'm just concerned about the permissions. Even if you run "npm install" as sudo, npm will still setuid to nobody.

dbankier commented 10 years ago

osx

dbankier commented 10 years ago

0.10

dbankier commented 10 years ago

The reason it worked for me was I was using nvm and don't install modules with sudo. Can still work with --unsafe-perm flag. Close/reject if you like.

cb1kenobi commented 10 years ago

Cool. I haven't forgotten about this PR. I just haven't had time to investigate. :)