Module build failed: Error: `sass-loader` requires `node-sass` >=4. Please install a compatible version

前端 未结 9 1259

Can you help me? I got this error when I hit ng s

ERROR in ./src/styles.scss (./node_modules/raw-loader!./node_modules/postcss-loader/lib??embedded!./node_modul         


        
9条回答
  •  终归单人心
    2021-02-19 10:21

    working solution

    Step 1 rm -rf node_modules it removes the directory recursively (the existing node modules, takes a min or two)

    Step 2 npm install this will work for sure, i did try and it worked.

提交回复
热议问题