Deleted hooks folder


I have a nativescript project where I deleted the hooks and platform folder to run a tns install again. This time the hooks folder never came back.

How do I get the hooks back? It seems to be causing problems where my app doesn’t refresh correctly anymore when I make changes to typescript files.


Just delete node_modules folder and run npm i and the hooks will be recreated.

rm -rf node_modules platforms hooks
npm i

Answered By – Nick Iliev

Answer Checked By – Marie Seifert (AngularFixing Admin)

Leave a Reply

Your email address will not be published.