Ionic setup sass not work

I update nodejs to current version (4.1.1) and ionic-start new project.
Log of ionic setup sass

Mac-Pro-Denni:pikad denniadam$ ionic setup sass
npmnpm WARN package.json pikadating@1.0.0 No README data
npm WARN package.json pikadating@1.0.0 No license field.
npm WARN deprecated pangyp@2.3.2: use node-gyp@3+, it does all the things

> node-sass@2.1.1 install /Volumes/MacData2/Dev/ionic/PikaD/node_modules/gulp-sass/node_modules/node-sass
> node scripts/install.js

Can not download file from

> node-sass@2.1.1 postinstall /Volumes/MacData2/Dev/ionic/PikaD/node_modules/gulp-sass/node_modules/node-sass
> node scripts/build.js

CXX(target) Release/
In file included from ../src/binding.cpp:1:
../node_modules/nan/nan.h:324:27: error: redefinition of 'NanEnsureHandleOrPersistent'
NAN_INLINE v8::Local<T> NanEnsureHandleOrPersistent(const v8::Local<T> &val) {
../node_modules/nan/nan.h:319:17: note: previous definition is here
  v8::Handle<T> NanEnsureHandleOrPersistent(const v8::Handle<T> &val) {
../node_modules/nan/nan.h:344:27: error: redefinition of 'NanEnsureLocal'
NAN_INLINE v8::Local<T> NanEnsureLocal(const v8::Handle<T> &val) {
../node_modules/nan/nan.h:334:27: note: previous definition is here
  NAN_INLINE v8::Local<T> NanEnsureLocal(const v8::Local<T> &val) {
../node_modules/nan/nan.h:757:13: error: no member named 'smalloc' in namespace 'node'
, node::smalloc::FreeCallback callback
../node_modules/nan/nan.h:768:12: error: no matching function for call to 'New'
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);

Error running gulp sass

Exception with  (CLI v1.6.4)

Your system information:
Cordova CLI: 5.0.0
Gulp version:  CLI version 3.9.0
Gulp local:   Local version 3.9.0
Ionic Version: 1.1.0
Ionic CLI Version: 1.6.4
Ionic App Lib Version: 0.3.8
ios-deploy version: Not installed
ios-sim version: 4.1.1 
OS: Mac OS X Yosemite
Node Version: v4.1.1
Xcode version: Xcode 7.0 Build version 7A220 

Help me pls!

  1. Rename/delete folder node_modules in project folder

  2. In file project_name/package.json

    “dependencies”: {

    “gulp-sass”: “^2.0.0”,

3 . Run again

ionic setup sass


1 Like

Thanks this worked for my error - which was a bit different.
Except that before running ‘ionic setup sass’ again I had to run ‘npm install gulp-sass’ as well.