Try reinstalling `node-sass` on node 0.12?

前端 未结 17 2684
感情败类
感情败类 2020-12-02 04:04

I would like to use google web starter kit. I installed node.js v0.12.0, node-sass & gulp.

And then ran:

$ sudo npm ins         


        
相关标签:
17条回答
  • 2020-12-02 04:31

    If your node version is 4 and you are using gulp-sass, then try

    npm uninstall --save-dev gulp-sass
    
    npm install --save-dev gulp-sass@2
    
    0 讨论(0)
  • 2020-12-02 04:31

    npm rebuild node-sass was giving me errors (Ubuntu) and npm install gulp-sass didn't make the error go away.

    Saw a solution on GitHub which worked for me:

    npm uninstall --save-dev gulp-sass

    npm install --save-dev gulp-sass

    0 讨论(0)
  • 2020-12-02 04:32

    If you use Gulp then try:

    npm install gulp-sass

    I had the same problem and the gulp-sass package was the problem.

    0 讨论(0)
  • 2020-12-02 04:34

    Downgrading Node to 0.10.36 should do it per this thread on the node-sass github page: https://github.com/sass/node-sass/issues/490#issuecomment-70388754

    If you have NVM you can just:

    nvm install 0.10
    

    If you don't, you can find NVM and instructions here: https://www.npmjs.com/package/nvm

    0 讨论(0)
  • 2020-12-02 04:34

    If you came here because you upgraded nodejs systemwide & suddenly your emberjs ^1.13 app is failing with this message, make sure you're not using an outdated version of ember-cli-sass. You'll need to rm -rf node_modules bower_components dist tmp within the Ember app, then update your package.json with the appropriate ember-cli-sass version, and finally npm install --save-dev. This fixed it for me, without having to rebuild or change any other dependencies.

    0 讨论(0)
  • 2020-12-02 04:35

    i had the same problem today at work.

    npm rebuild node-sass

    done the job for me

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