LoginSignup
6
4

More than 5 years have passed since last update.

Gulpの実行がうまくいかない時

Posted at

Node.jsのアップデートでコンパイルエラーが出る場合

node-sass を rebuild

$ npm rebuild node-sass

gulp-sassの再インストール

Error: Cannot find module 'gulp-sass'

再インストール

$ npm uninstall --save-dev gulp-sass
$ npm install --save-dev gulp-sass@2
$ npm rebuild node-sass

node-sassの再インストール

/Users/****/node_modules/node-sass/lib/extensions.js:158
    throw new Error([
    ^

Error: The `libsass` binding was not found in /Users/****/node_modules/node-sass/vendor/darwin-x64-48/binding.node
This usually happens because your node version has changed.

再インストール

$ npm uninstall node-sass
$ sudo npm uninstall node-sass
6
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
4