Ionic 1, rebuild node-sass error


#1

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
1.7.16
node --version
v6.9.2

Any clue?
Thanks


#2

npm rebuild node-sass


#3

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


#4

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


#5

Thanks, already done, but no luck…


#6

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

System:

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++]

#7

Thanks,
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…