Ionic 1, rebuild node-sass error


Hi, i’m trying to reinstall node-sass for my ionic v1 project, but i get this error:

npm rebuild node-sass

In file included from …/src/binding.cpp:1:
…/node_modules/nan/nan.h:602:20: error: no type named ‘GCEpilogueCallback’ in 'v8::Isolate’
v8::Isolate::GCEpilogueCallback callback

Failed at the node-sass@3.4.2 postinstall script.

ionic --version
node --version

Any clue?


npm rebuild node-sass


The error is relative at your mentioned command
npm rebuild node-sass


Oh i forgot to add, delete your node_modules folder and try again


Thanks, already done, but no luck…


try updating npm and node versions, then do a npm install. It will automatically install the latest node-sass version which is 4.6.0. I had this issue couple of days ago.

Here is my ionic info:

@ionic/cli-utils  : 1.18.0
ionic (Ionic CLI) : 3.18.0

global packages:

Gulp CLI : CLI version 3.9.1 Local version 3.9.1

local packages:

Ionic Framework : ionic1 1.3.4


Node : v8.9.1
npm  : 5.5.1
OS   : Windows 10
$ node-sass -v
node-sass       4.6.0   (Wrapper)       [JavaScript]
libsass         3.5.0.beta.2    (Sass Compiler) [C/C++]


updated everything, but the error is still there.
i’ve installed node-sass globally, but my local sass in project is not being compiled with ionic serve…