There is new way to clear the StageExtensions folder as following
sudo kextcache --clear-staging
This command will clear the /Library/StageExtensions folder. We dont need to go to recovery mode and delete manually this folder in case there are some permission errors while installing software.