2017-05-06 75 views
1

上laravel安裝仙丹時,我得到了以下錯誤5.2.31錯誤:要導入的文件找不到或無法讀取:node_modules /自舉薩斯/資產/樣式表/引導

gulp 
[12:05:58] Using gulpfile /var/www/html/ta/gulpfile.js 
[12:05:58] Starting 'default'... 
[12:05:58] Starting 'sass'... 

Fetching Sass Source Files... 
    - resources/assets/sass/app.scss 


Saving To... 
    - public/css/app.css 

[12:06:01] Finished 'default' after 2.17 s 
[12:06:01] gulp-notify: [Laravel Elixir] Sass Compilation Failed: resources/assets/sass/app.scss 
Error: File to import not found or unreadable: node_modules/bootstrap-sass/assets/stylesheets/bootstrap 
     Parent style sheet: /var/www/html/ta/resources/assets/sass/app.scss 
     on line 1 of resources/assets/sass/app.scss 
>> @import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap"; 
^

{ Error: resources/assets/sass/app.scss 
Error: File to import not found or unreadable: node_modules/bootstrap-sass/assets/stylesheets/bootstrap 
     Parent style sheet: /var/www/html/ta/resources/assets/sass/app.scss 
     on line 1 of resources/assets/sass/app.scss 
>> @import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap"; 
^

    at options.error (/var/www/html/ta/node_modules/node-sass/lib/index.js:286:26) 
    status: 1, 
    file: '/var/www/html/ta/resources/assets/sass/app.scss', 
    line: 1, 
    column: 1, 
    message: 'resources/assets/sass/app.scss\nError: File to import not found or unreadable: 

node_modules/bootstrap-sass/assets/stylesheets/bootstrap\n
Parent style sheet: /var/www/html/ta/resources/assets/sass/app.scss\n on line 1 of resources/assets/sass/app.scss\n>> @import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap";\n ^\n', formatted: 'Error: File to import not found or unreadable: node_modules/bootstrap-sass/assets/stylesheets/bootstrap\n
Parent style sheet: /var/www/html/ta/resources/assets/sass/app.scss\n on line 1 of resources/assets/sass/app.scss\n>> @import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap";\n ^\n', messageFormatted: '\u001b[4mresources/assets/sass/app.scss\u001b[24m\nError: File to import not found or unreadable: node_modules/bootstrap-sass/assets/stylesheets/bootstrap\n
Parent style sheet: /var/www/html/ta/resources/assets/sass/app.scss\n on line 1 of resources/assets/sass/app.scss\n>> @import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap";\n ^\n', messageOriginal: 'File to import not found or unreadable: node_modules/bootstrap-sass/assets/stylesheets/bootstrap\nParent style sheet: /var/www/html/ta/resources/assets/sass/app.scss', relativePath: 'resources/assets/sass/app.scss', name: 'Error', stack: 'Error: resources/assets/sass/app.scss\nError: File to import not found or unreadable: node_modules/bootstrap-sass/assets/stylesheets/bootstrap\n
Parent style sheet: /var/www/html/ta/resources/assets/sass/app.scss\n on line 1 of resources/assets/sass/app.scss\n>> @import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap";\n ^\n\n at options.error (/var/www/html/ta/node_modules/node-sass/lib/index.js:286:26)', showStack: false, showProperties: true, plugin: 'gulp-sass' } [12:06:01] Finished 'sass' after 2.24 s

回答

0

我有一個類似的錯誤有Laravel混合(服務替代藥劑):

File to import not found or unreadable: node_modules/bootstrap-sass/assets/stylesheets/bootstrap

我意識到這是因爲我忘了從我的項目目錄中運行npm install。你試過了嗎?

+0

好的,謝謝你,先生,這個工作對我來說。我在package.json中更改了「laravel-elixir」:「*」 – Oncom

相關問題