Problem with gulp-sass and node 4.1.1

This is my enviroment with the command ionic info

Your system information:

Cordova CLI: 5.3.3
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.0
Ionic Version: 1.1.0
Ionic CLI Version: 1.6.5
Ionic App Lib Version: 0.3.9
OS: Windows 8
Node Version: v4.1.1

When I run the command npm install, I get the following error:

node-sass@2.1.1 install C:\Users\FIDEL-CASA\Desktop\prueba\dsfasdfa\fidel\node
node scripts/install.js

Can not download file from

node-sass@2.1.1 postinstall C:\Users\FIDEL-CASA\Desktop\prueba\dsfasdfa\fidel
node scripts/build.js

gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: 404 status code downloading 64-bit node.lib
gyp ERR! stack at Request. (C:\Users\FIDEL-CASA\Desktop\prueba\ds
gyp ERR! stack at emitOne (events.js:82:20)
gyp ERR! stack at Request.emit (events.js:169:7)
gyp ERR! stack at Request.onRequestResponse (C:\Users\FIDEL-CASA\Desktop\pru
gyp ERR! stack at emitOne (events.js:77:13)
gyp ERR! stack at ClientRequest.emit (events.js:169:7)
gyp ERR! stack at HTTPParser.parserOnIncomingClient (_http_client.js:415:21)

gyp ERR! stack at HTTPParser.parserOnHeadersComplete (_http_common.js:88:23)

gyp ERR! stack at Socket.socketOnData (_http_client.js:305:20)
gyp ERR! stack at emitOne (events.js:77:13)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Users\FIDEL-CASA\D
s\node_modules\pangyp\bin\node-gyp” “rebuild”
gyp ERR! cwd C:\Users\FIDEL-CASA\Desktop\prueba\dsfasdfa\fidel\node_modules\gulp
gyp ERR! node -v v4.1.1
gyp ERR! pangyp -v v2.3.2
gyp ERR! not ok
Build failed
npm ERR! Windows_NT 6.2.9200
npm ERR! argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\
node_modules\npm\bin\npm-cli.js” “install”
npm ERR! node v4.1.1
npm ERR! npm v2.14.4
npm ERR! path C:\Users\FIDEL-CASA\AppData\Roaming\npm-cache\lodash.template\3.6.
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall rename

npm ERR! Error: EPERM: operation not permitted, rename ‘C:\Users\FIDEL-CASA\AppD
35680b8e91062bf92’ → ‘C:\Users\FIDEL-CASA\AppData\Roaming\npm-cache\lodash.temp
npm ERR! at Error (native)
npm ERR! { [Error: EPERM: operation not permitted, rename ‘C:\Users\FIDEL-CASA
ff9035680b8e91062bf92’ → ‘C:\Users\FIDEL-CASA\AppData\Roaming\npm-cache\lodash.
npm ERR! errno: -4048,
npm ERR! code: ‘EPERM’,
npm ERR! syscall: ‘rename’,
npm ERR! path: ‘C:\Users\FIDEL-CASA\AppData\Roaming\npm-cache\lodash.tem
npm ERR! dest: ‘C:\Users\FIDEL-CASA\AppData\Roaming\npm-cache\lodash.tem
npm ERR! parent: ‘gulp-util’ }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\FIDEL-CASA\Desktop\prueba\dsfasdfa\fidel\npm-debug.log

I think the problem is caused by the version of "gulp-sass": "^1.3.3" which uses the "node-sass" : "^2.0.1". Here node-sass@2.1.1 install: cannot rebuild on Node 4.1 · Issue #1166 · sass/node-sass · GitHub said that this node-sass version does not work with node v4.1.1, it does not work even with the node v4.0.0.

Do you recommend in this case back to node v0.12.7 ?
Why Ionic not use a more recent gulp-sass version to resolve that issue?

Yes especially on Windows.

You can update your project’s package.json.
You can report the issue to the Ionic team on github.

1 Like