2017-05-06 76 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

相关问题