I wanted to use the Floating button in my App.
tns plugin add nativescript-floatingactionbutton
But the Installation failed. Below is the installation error.
I tried this also
sudo npm i nativescript-floatingactionbutton
This looks like a permission error, since it is not able to write to your node_modules folder.
sometimes sudo doesn't work you just have to do su first then Enter, then type commands normally like tns plugin add nativescript-xxxxxxx
tns plugin add nativescript-xxxxxxx