我努力學習laravel和Windows 10Laravel SCSS編譯失敗
成立了一個新的項目,作曲家,如果我嘗試編譯
資源\資產\青菜\ app.scss
我有以下錯誤
Compilation Error
Error: File "c:\Users\Michael\www\demolaravel\resources\assets\sass\node_modules\bootstrap-sass\assets\stylesheets\bootstrap" not found
on line 9 of sass/c:\Users\Michael\www\demolaravel\resources\assets\sass\app.scss
>> @import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap";
爲什麼他抱怨有關DIR - 也app.css(至少在這個特定的行)是原來的。這是作曲家安裝它的方式。
// Fonts
@import url("https://fonts.googleapis.com/css?family=Raleway:300,400,600");
// Variables
@import "variables";
// Bootstrap
@import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap";
body{
padding-top: 80px;
}
我只是在最後 我與Visual Studio代碼和現場SASS編譯器擴展工作增加了車身選擇。但我也試過童子軍應用 還試圖puting的絕對路徑,但沒有工作:(
您是否在項目中使用'npm install'安裝了依賴項? –
不,我忘了。讓這個答案,我接受 –