Try reinstalling `node-sass` on node 0.12?

前端 未结 17 2731
感情败类
感情败类 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:37

    For me, this issue was caused in my build system (Travis CI) by doing something kind of dumb in my .travis.yml file. In effect, I was calling npm install before nvm use 0.12, and this was causing node-sass to be built for 0.10 instead of 0.12. My solution was simply moving nvm use out of the .travis.yml file’s before_script section to before the npm install command, which was in the before_install section.

    In your case, it is likely that whatever process you are starting with gulp is using a different version of node (than what you would expect).

提交回复
热议问题