When i using composer, node, npm, ionic, and other frameworks to install or update some packages, it will checking for the resources availbility on server and it take so long even your network is okay for opening website like Google and YouTube.

Solution is update your dns-nameserver using default DNS that your router get from the ISP. Some people still using 8.8.8.8 or 8.8.4.4 as the dns-nameserver configuration.

For the primary DNS you can set with 192.168.1.1 (your network gateway)  and let the router retrieve the default DNS from the ISP. For the second DNS you can set with Google DNS or else.

Some command to check your network:
# ifconfig (Linux) / ipconfig (Windows)

Your wifi's configuration for ssid and password that generated using wpa_passphrase is surely right, router configuration and your network interface setting not the problem.

So, check this file "/etc/dbus-1/system.d/wpa_supplicant.conf". If there is a 'epitest' word in there, do a backup for this file and edit after it. Delete all 'epitest' word on that file and save. Make sure there is no double dot (.) after you delete the 'epitest' word.

After that, run `killall wpa_supplicant` and `wpa_supplicant -B -i wlan0 -Dwext -c /etc/wpa_supplicant.conf`. If there is an error with parameter, run again without `-B` and open new terminal for run another command, that is `dhclient wlan0` and wait until dhclient command was done.

Finally, check `ipconfig` and make sure your wlna0 success getting ip from the rotuer/hotspot/access point.