When I setting up Laravel 5.6.7 on PHP 7.1.15 encountered error while the npm install. I think this is not laravel problem. But If this hasn’t soleved, can’t development vue.js. So, I will share a hint.


[root@localhost nginx]# php -v
PHP 7.1.15 (cli) (built: Feb 28 2018 14:06:54) ( NTS )

[root@localhost app]# php artisan –version
Laravel Framework 5.6.7

[root@localhost app]# npm –version

[root@localhost app]# node –version

This is a log when run “npm install”. As you can see, WARN happened forever…
“gyp WARN EACCES user “root” does not have permission to access the dev dir “/usr/share/nginx/app/node_modules/node-sass/.node-gyp/8.9.4”.

After this happened, This time should be fine.

modify welcome.blade.php, see this page.

Check see if vue.js is running. go to

Hope this will help you 😗