I am using Laravel 5.5 with vue.js.
I did try chmod -R 777 node_modules
chmod -R 777 node_modules
I run npm install then chmod again.
npm install
I still cannot bypass this error.
Use:
sudo npm install
This will solve the permission issue.