在安装依赖项时,我已经安装了vuejs主题,实用ui
npm install
它抛出
ERROR in ./resources/js/src/assets/scss/global.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/src??ref--7-2!./node_modules/sass-loader/lib/loader.js??ref--7-3!./resources/js/src/assets/scss/global.scss)
Module build failed (from ./node_modules/sass-loader/lib/loader.js):
我已经安装了
+"sass-loader": "^7.1.0",
+"css-loader": "^3.0.0",
+"postcss-loader": "^3.0.0",
仍然存在此错误, 我试图
npm rebuild node-sass
Binary found at /home/eleazar/Apps/plantillabase/node_modules/node-sass/vendor/linux-x64-64/binding.node
Testing binary
Binary is fine
node-sass@4.12.0 /home/eleazar/Apps/plantillabase/node_modules/node-sass
仍然抛出错误, 我的webpack.mix.js
const mix = require('laravel-mix');
const src_path = 'resources/assets/js/src';
require('laravel-mix-alias');
mix.alias({
'@': '/resources/js/src',
'@js': '/resources/js',
'@comp': '/resources/js/components',
'@nmd': '/node_modules',
});
mix.js('resources/js/app.js', 'public/js')
.sass('resources/sass/app.scss', 'public/css',{
implementation: require('node-sass')
});
我可以尝试什么?