I was looking at the summer written Laravel Getting Started tutorial, using the MAC on Homestead---Vagrant
In the fourth chapter, one step is to compile the. scss file generated by default into a. css Laravel.
The command is as follows:
NPM Run Dev
Linux or Mac or Windows environment will encounter cross-env problem, at this time in the comments side see a solution
The principle has been very clear, is the windows of the pot Bai. It seems that many people have solved the problem through the method here.
But I this stubborn, deleted cross-env or not, error:
SH 1: Node_modules/webpack/bin/webpack.js:permission denied
I look at the permission to refuse, then I will sudo, or not, friends remind me to file a 777 bar, so I tried a bit
chmod 777 Node_modules/webpack/bin/webpack.js
The permission error is gone, but a new error has been reported:
Error 2 errors error in. /resources/assets/sass//home/vagrant/ code/sample/node_modules/node-sass/vendor/linux-x64-/findfor64 8. x
Seems to be related to node sass binding problem, seemingly not much of a problem, although I still on the Stack Overflow searched:
Although the above solution is not exactly the same as mine, but I feel the same meaning, just follow?? The second one tried (because you don't have to delete the file)
NPM Rebuild Node-sass
And then re-
NPM Run Dev
Get.
It is not easy, card for almost two days, I hope to have the same problem of students have help, I also recorded to deepen the impression.
Laravel Framework use command on MAC npm run dev times wrong problem