私は解決策を見つけようとしていたるところで研究しました。Windows 10 を使用しています。「ionic setup sass」を実行できません。管理者として実行したときに受け取るエラーは次のとおりです。
Ionic project ready to use Sass!
* Customize the app using scss/ionic.app.scss
* Run ionic serve to start a local dev server and watch/compile Sass to CSS
C:\Users\Chase\Desktop\ionFullApp_1.3.0\node_modules\gulp-sass\node_modules\node-sass\lib\index.js:22
throw new Error('`libsass` bindings not found. Try reinstalling `node-sass`?');
^
Error: `libsass` bindings not found. Try reinstalling `node-sass`?
at getBinding (C:\Users\Chase\Desktop\ionFullApp_1.3.0\node_modules\gulp-sass\node_modules\node-sass\lib\index.js:22:11)
at Object.<anonymous> (C:\Users\Chase\Desktop\ionFullApp_1.3.0\node_modules\gulp-sass\node_modules\node-sass\lib\index.js:188:23)
at Module._compile (module.js:425:26)
at Object.Module._extensions..js (module.js:432:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:313:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (C:\Users\Chase\Desktop\ionFullApp_1.3.0\node_modules\gulp-sass\index.js:3:17)
at Module._compile (module.js:425:26)
Error running gulp sass
Exception with (CLI v1.7.12)
Your system information:
Cordova CLI: 5.4.1
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.0
Ionic Version: 1.0.1
Ionic CLI Version: 1.7.12
Ionic App Lib Version: 0.6.5
OS:
Node Version: v5.1.0
node-sass をアンインストールし、「npm uninstall node-sass」と「npm install node-sass」を使用して再インストールしようとしました。node_modules フォルダーを削除して、もう一度「npm install」を実行してみました。
「ionic serve」を使用して自分のアプリを確認すると、次のエラーが表示されます。
ionic $ C:\Users\Chase\Desktop\ionFullApp_1.3.0\node_modules\gulp-sass\node_modules\node-sass\lib\index.js:22
throw new Error('`libsass` bindings not found. Try reinstalling `node-sass`?');
^
Error: `libsass` bindings not found. Try reinstalling `node-sass`?
at getBinding (C:\Users\Chase\Desktop\ionFullApp_1.3.0\node_modules\gulp-sass\node_modules\node-sass\lib\index.js:22:11)
at Object.<anonymous> (C:\Users\Chase\Desktop\ionFullApp_1.3.0\node_modules\gulp-sass\node_modules\node-sass\lib\index.js:188:23)
at Module._compile (module.js:425:26)
at Object.Module._extensions..js (module.js:432:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:313:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (C:\Users\Chase\Desktop\ionFullApp_1.3.0\node_modules\gulp-sass\index.js:3:17)
at Module._compile (module.js:425:26)
また、gulp-sass のアンインストールと再インストールも試みました。npm install gulp-sass を実行すると、次のようになります。
$ npm install gulp-sass
npm WARN deprecated pangyp@2.3.3: use node-gyp@3+ instead
npm WARN prefer global pangyp@2.3.3 should be installed with -g
> node-sass@2.1.1 install C:\Users\Chase\Desktop\ionFullApp_1.3.0\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-5.1/binding.node
> node-sass@2.1.1 postinstall C:\Users\Chase\Desktop\ionFullApp_1.3.0\node_modules\gulp-sass\node_modules\node-sass
> node scripts/build.js
module.js:340
throw err;
^
Error: Cannot find module 'C:\Users\Chase\Desktop\ionFullApp_1.3.0\node_modules\gulp-sass\node_modules\node-sass\node_modules\pangyp\bin\node-gyp'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:289:25)
at Function.Module.runMain (module.js:457:10)
at startup (node.js:138:18)
at node.js:974:3
Build failed
ionfullapp@1.2.0 C:\Users\Chase\Desktop\ionFullApp_1.3.0
├─┬ bower@1.7.1
│ ├─┬ bower-json@0.4.0
│ │ └── graceful-fs@2.0.3
│ ├─┬ configstore@0.3.2
│ │ └── object-assign@2.1.1
│ ├─┬ glob@4.5.3
│ │ └── minimatch@2.0.10
│ ├── graceful-fs@3.0.8
│ ├─┬ mkdirp@0.5.0
│ │ └── minimist@0.0.8
│ └─┬ request@2.53.0
│ ├── aws-sign2@0.5.0
│ ├─┬ bl@0.9.4
│ │ └── readable-stream@1.0.33
│ ├─┬ combined-stream@0.0.7
│ │ └── delayed-stream@0.0.5
│ ├── forever-agent@0.5.2
│ ├─┬ form-data@0.2.0
│ │ └── async@0.9.2
│ ├─┬ http-signature@0.10.1
│ │ ├── asn1@0.1.11
│ │ └── ctype@0.5.3
│ ├─┬ mime-types@2.0.14
│ │ └── mime-db@1.12.0
│ └── qs@2.3.3
├─┬ gulp@3.9.0
│ ├── gulp-util@3.0.7
│ └─┬ vinyl-fs@0.3.14
│ ├─┬ glob-stream@3.1.18
│ │ ├── glob@4.5.3
│ │ ├── minimatch@2.0.10
│ │ └─┬ through2@0.6.5
│ │ └── readable-stream@1.0.33
│ ├── graceful-fs@3.0.8
│ └─┬ through2@0.6.5
│ └── readable-stream@1.0.33
├─┬ gulp-angular-templatecache@1.8.0
│ ├─┬ gulp-concat@2.6.0
│ │ ├── gulp-util@3.0.7
│ │ └─┬ through2@0.6.5
│ │ └── readable-stream@1.0.33
│ └── gulp-util@3.0.7
├─┬ gulp-flatten@0.1.1
│ └── gulp-util@3.0.7
├─┬ gulp-if@1.2.5
│ ├─┬ ternary-stream@1.2.3
│ │ ├─┬ merge-stream@0.1.8
│ │ │ └─┬ through2@0.6.5
│ │ │ └── readable-stream@1.0.33
│ │ └─┬ through2@0.6.5
│ │ └── readable-stream@1.0.33
│ └─┬ through2@0.6.5
│ └── readable-stream@1.0.33
├─┬ gulp-json-editor@2.2.1
│ ├── gulp-util@3.0.7
│ └─┬ through2@0.5.1
│ └── readable-stream@1.0.33
├─┬ gulp-minify-css@1.2.2
│ └── gulp-util@3.0.7
├─┬ gulp-ng-annotate@1.1.0
│ ├── gulp-util@3.0.7
│ └─┬ through2@0.4.2
│ └── readable-stream@1.0.33
├─┬ gulp-ng-constant@0.3.0
│ ├── lodash@2.4.2
│ └─┬ through2@0.4.2
│ └── readable-stream@1.0.33
├─┬ gulp-preprocess@1.2.0
│ └── lodash@2.4.2
├─┬ gulp-sass@1.3.3
│ ├── clone@0.1.19
│ ├── gulp-util@3.0.7
│ └─┬ node-sass@2.1.1
│ ├─┬ chalk@0.5.1
│ │ ├── ansi-styles@1.1.0
│ │ ├─┬ has-ansi@0.1.0
│ │ │ └── ansi-regex@0.2.1
│ │ ├── strip-ansi@0.3.0
│ │ └── supports-color@0.2.0
│ ├── cross-spawn@0.2.9
│ ├─┬ gaze@0.5.2
│ │ └─┬ globule@0.1.0
│ │ └── minimatch@0.2.14
│ ├─┬ mocha@2.3.4
│ │ ├── commander@2.3.0
│ │ ├── diff@1.4.0
│ │ ├── escape-string-regexp@1.0.2
│ │ ├─┬ glob@3.2.3
│ │ │ ├── graceful-fs@2.0.3
│ │ │ └── minimatch@0.2.14
│ │ ├── growl@1.8.1
│ │ ├─┬ jade@0.26.3
│ │ │ ├── commander@0.6.1
│ │ │ └── mkdirp@0.3.0
│ │ ├─┬ mkdirp@0.5.0
│ │ │ └── minimist@0.0.8
│ │ └── supports-color@1.2.0
│ ├── nan@1.9.0
│ ├─┬ npmconf@2.1.2
│ │ └── uid-number@0.0.5
│ ├── object-assign@2.1.1
│ ├─┬ pangyp@2.3.3
│ │ ├── glob@4.3.5
│ │ ├── graceful-fs@3.0.8
│ │ ├── minimatch@2.0.10
│ │ ├─┬ request@2.51.0
│ │ │ ├── aws-sign2@0.5.0
│ │ │ ├─┬ bl@0.9.4
│ │ │ │ └── readable-stream@1.0.33
│ │ │ ├── caseless@0.8.0
│ │ │ ├─┬ combined-stream@0.0.7
│ │ │ │ └── delayed-stream@0.0.5
│ │ │ ├── forever-agent@0.5.2
│ │ │ ├─┬ form-data@0.2.0
│ │ │ │ ├── async@0.9.2
│ │ │ │ └─┬ mime-types@2.0.14
│ │ │ │ └── mime-db@1.12.0
│ │ │ ├─┬ hawk@1.1.1
│ │ │ │ ├── boom@0.4.2
│ │ │ │ ├── cryptiles@0.2.2
│ │ │ │ ├── hoek@0.9.1
│ │ │ │ └── sntp@0.2.4
│ │ │ ├─┬ http-signature@0.10.1
│ │ │ │ ├── asn1@0.1.11
│ │ │ │ └── ctype@0.5.3
│ │ │ ├── mime-types@1.0.2
│ │ │ ├── oauth-sign@0.5.0
│ │ │ └── qs@2.3.3
│ │ └── tar@1.0.3
│ ├─┬ request@2.67.0
│ │ └─┬ har-validator@2.0.3
│ │ └── commander@2.9.0
│ └─┬ sass-graph@1.3.0
│ ├── commander@2.9.0
│ ├─┬ glob@4.5.3
│ │ └── minimatch@2.0.10
│ └── lodash@2.4.2
├─┬ gulp-shell@0.4.3
│ └── gulp-util@3.0.7
├─┬ gulp-uglify@1.5.1
│ └── gulp-util@3.0.7
├─┬ gulp-useref@1.3.0
│ ├── gulp-util@3.0.7
│ ├─┬ through2@0.6.5
│ │ └── readable-stream@1.0.33
│ └─┬ vinyl-fs@1.0.0
│ ├─┬ glob-stream@4.1.1
│ │ ├── glob@4.5.3
│ │ └── minimatch@2.0.10
│ ├── graceful-fs@3.0.8
│ └── object-assign@2.1.1
├─┬ gulp-util@2.2.20
│ ├─┬ chalk@0.5.1
│ │ ├── ansi-styles@1.1.0
│ │ ├─┬ has-ansi@0.1.0
│ │ │ └── ansi-regex@0.2.1
│ │ ├── strip-ansi@0.3.0
│ │ └── supports-color@0.2.0
│ └─┬ through2@0.5.1
│ └── readable-stream@1.0.33
├─┬ jshint@2.8.0
│ └── minimatch@2.0.10
└─┬ mv@2.1.1
└─┬ mkdirp@0.5.1
└── minimist@0.0.8
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Chase\Desktop\ionFullApp_1.3.0\node_modules\mocha\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Chase\Desktop\ionFullApp_1.3.0\node_modules\node-sass\package.json'
npm WARN ionfullapp@1.2.0 No repository field.
npm WARN ionfullapp@1.2.0 No license field.
どんな助けでも大歓迎です。私はこの時点で完全に立ち往生しています。