Showing posts with label troubleshooting. Show all posts
Showing posts with label troubleshooting. Show all posts

Tuesday, October 25, 2016

NodeJS permission issues troubleshooting path

NodeJS permission issues troubleshooting path


It was such a terrifying experience to have node and especially yeoman not work because of weird permission issues. I fixed the issues finally and kind of think theres pattern to it. This is not a full and final cookbook type of thingy but you might wanna check this method out in case you are stuck with the same issues. First of all
1. If the problem is not in your project directory then it must me in your ~/.config and ~/.npm directories. As you may have seen many newbies of node opt to the sudo method of installing things. But this causes problem regarding permission when yeoman comes in as some of the commands need access to areas where root is not permitted and if you do not use sudo before yo, you get errors about some of the errors where you need root. This mess up is simply caused by sometimes using sudo and sometimes not. Which you have to do because you do not own the ~/.npm directory. Just own it using

sudo chown -R `whoami` ~/.npm
2. If the problem still persists, check your project directories node_modules directory if it has any subdirectory or file deep inside where access is needed it has root privileges required. So you can use the same owning method there too

sudo chown -R `whoami` ~/.npm
3. Always try to install non globally. This will save you a lot of trouble.

Credits: Stackoverflow [ http://stackoverflow.com/questions/16151018/npm-throws-error-without-sudo ]

Go to link download

Read more »

Thursday, September 8, 2016

Android ADT Troubleshooting fixing the libz so 1 missing problem

Android ADT Troubleshooting fixing the libz so 1 missing problem


There seems to be a common problem when launching the Android ADT bundle in Linux. It gives out a similar error like the following.

2012-06-06 18:44:40 - contactManager] /home/catia/android-sdks/platform-tools/aapt:
error while loading shared libraries: libz.so.1: cannot open shared object file:
No such file or directory
I too had this same problem in my Ubuntu 14.04 machine and as always after a simple query in Google, I found the solution through AskUbuntu. Heres what you have to do, run the following command. It installs a specific library that was previously fulfilled using the ia32-libs package of Ubuntu.

sudo apt-get install lib32z1


Go to link download

Read more »