ERROR in ./node_modules/css-loader?

后端 未结 8 1563
一生所求
一生所求 2021-02-03 22:14

I was trying to run an angular project in windows 10. It is the same project that I am doing in Ubuntu. When I clone the repository and install all the node packages I encounter

相关标签:
8条回答
  • 2021-02-03 22:45

    Run this command:

    npm install --save node-sass
    

    This does the same as above. Similarly to the answer above.

    0 讨论(0)
  • 2021-02-03 22:45

    Try to run

    npm i node-sass@latest

    0 讨论(0)
  • 2021-02-03 22:50

    try using

    npm rebuild node-sass

    0 讨论(0)
  • 2021-02-03 22:52

    Laravel Mix 4 switches from node-sass to dart-sass (which may not compile as you would expect, OR you have to deal with the issues one by one)

    OR

    npm install node-sass
    
    
    mix.sass('resources/sass/app.sass', 'public/css', {
    implementation: require('node-sass')
    });
    

    https://laravel-mix.com/docs/4.0/upgrade

    0 讨论(0)
  • 2021-02-03 22:53

    My case:

    Missing node-sass in package.json

    Solution:

    1. npm i --save node-sass@latest
    2. remove node-modules folder
    3. npm i
    4. check "@angular-devkit/build-angular": "^0.901.0" version in package.json
    0 讨论(0)
  • 2021-02-03 22:59

    I am also facing the same problem, but I resolve.

    npm install node-sass  
    

    Above command work for me. As per your synario you can use the blow command.

    Try 1

     npm install node-sass
    

    Try 2

    remove node_modules folder and run npm install
    

    Try 3

    npm rebuild node-sass
    

    Try 4

    npm install --save node-sass
    

    For your ref you can go through this github link

    0 讨论(0)
提交回复
热议问题