Giving full control (read/write/execute) to var and pub directory solved this issue for me.
sudo chmod -R 777 var pub
Or, you may also try running the command using sudo.
sudo php -f bin/magento module:enable --clear-static-content Test_Module
Giving full control (read/write/execute) to var and pub directory solved this issue for me.
sudo chmod -R 777 var pub
Or, you may also try running the command using sudo.
sudo php -f bin/magento module:enable --clear-static-content Test_Module