Laravel Framework use command on MAC npm run dev times wrong problem

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.