Redirect and persist installation logs to file

- add recipe to clean npm cache/
- fix permissions for npm