Bonjour à tous. Je suis entrain d'apprendre le le framework Ionic en me basant sur le tuto à grafikart.
Après création de l'application, il lance la commande :
ionic setup sass
Quand je l'ai fais, j'ai eu cette erreur :
Successful npm installaroundaround Updated F:\Documents\SED\Appli\Demo\www\index.html <link href> references to sass compiled cssaroundaroundIonic project ready to use Sass!around * Customize the app using scss/ionic.app.scssaround * Run ionic serve to start a local dev server and watch/compile Sass to CSSaroundaroundF:\Documents\SED\Appli\Demo\node_modules\gulp-sass\node_modules\node-sass\lib\index.js:22around throw new Error('`libsass` bindings not found. Try reinstalling `node-sass`?');around ^aroundaroundError: `libsass` bindings not found. Try reinstalling `node-sass`?around at getBinding (F:\Documents\SED\Appli\Demo\node_modules\gulp-sass\node_modules\node-sass\lib\index.js:22:11)around at Object.<anonymous> (F:\Documents\SED\Appli\Demo\node_modules\gulp-sass\node_modules\node-sass\lib\index.js:188:23)aroundaroundaroundaroundat Module._compile (module.js:434:26)aroundat Object.Module._extensions..js (module.js:452:10)aroundat Module.load (module.js:355:32)aroundat Function.Module._load (module.js:310:12)aroundat Module.require (module.js:365:17)aroundat require (module.js:384:17)aroundat Object.<anonymous> (F:\Documents\SED\Appli\Demo\node_modules\gulp-sass\index.js:3:17)aroundat Module._compile (module.js:434:26)aroundaroundException with (CLI v1.6.4)aroundaroundYour system information:aroundaroundCordova CLI: 5.3.1aroundGulp version: CLI version 3.9.0aroundGulp local: Local version 3.9.0aroundIonic Version: 1.1.0aroundIonic CLI Version: 1.6.4aroundIonic App Lib Version: 0.3.8aroundOS: nullaroundNode Version: v4.0.0
J'ai essayé de la corriger en ré installant gulp et j'ai comme erreur :
$ npm install gulp-sass
npm WARN package.json demo@1.0.0 No repository field.
npm WARN package.json demo@1.0.0 No README data
npm WARN package.json demo@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 F:\Documents\SED\Appli\Demo\node_modules\gulp-sass\node_modules\node-sass
> node scripts/install.js
Can not download file from https://raw.githubusercontent.com/sass/node-sass-binaries/v2.1.1/win32-x64-node-4.0/binding.node
> node-sass@2.1.1 postinstall F:\Documents\SED\Appli\Demo\node_modules\gulp-sass\node_modules\node-sass
> 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.<anonymous> (F:\Documents\SED\Appli\Demo\node_modules\gulp-sass\node_modules\node-sass\node_modules\pangyp\lib\install.js:403:20)
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 (F:\Documents\SED\Appli\Demo\node_modules\gulp-sass\node_modules\node-sass\node_modules\pangyp\node_modules\request\request.js:1255:10)
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 10.0.10240
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "F:\\Documents\\SED\\Appli\\Demo\\node_modules\\gulp-sass\\node_modules\\node-sass\\node_modules\\pangyp\\bin\\node-gyp" "rebuild"
gyp ERR! cwd F:\Documents\SED\Appli\Demo\node_modules\gulp-sass\node_modules\node-sass
gyp ERR! node -v v4.0.0
gyp ERR! pangyp -v v2.3.2
gyp ERR! not ok
Build failed
gulp-sass@1.3.3 node_modules\gulp-sass
├── clone@0.1.19
├── map-stream@0.1.0
├── vinyl-sourcemaps-apply@0.1.4 (source-map@0.1.43)
├── gulp-util@3.0.6 (array-differ@1.0.0, array-uniq@1.0.2, beeper@1.1.0, lodash._reinterpolate@3.0.0, lodash._reevaluate@3.0.0, lodash._reescape@3.0.0, object-assign@3.0.0, replace-ext@0.0.1, minimist@1.2.0, vinyl@0.5.3, chalk@1.1.1, lodash.template@3.6.2, through2@2.0.0, multipipe@0.1.2, dateformat@1.0.11)
└── node-sass@2.1.1 (get-stdin@4.0.1, object-assign@2.1.1, replace-ext@0.0.1, chalk@0.5.1, cross-spawn@0.2.9, semver@4.3.6, mkdirp@0.5.1, meow@3.3.
Après 5h de debug, je m'en remet à vous. Merci d'avance pour votre aide
La version de IONIC utilisée est supportée que par la version 0.10, and 0.12 de node JS