Laravel Homestead, npm install --no-bin-links error

后端 未结 2 778
予麋鹿
予麋鹿 2021-01-28 15:50

I am using fresh Homestead (box version 0.5) for a fresh Laravel 5.3 app. Host OS is Windows 10.

I get this error when running npm install --no-bin-links

2条回答
  •  滥情空心
    2021-01-28 16:50

    You can try this, as it is the system I usually use:

    > npm install --no-bin-links
    > npm install --no-bin-links
    > npm rebuild node-sass
    

    The first npm install ususally errors out with the "Maximum call stack size exceeded.". The second npm install picks up where it left off and finishes up the install. node-sass is usually broken at this point, so the npm rebuild fixes the node-sass installation.

提交回复
热议问题