gulp-scss-lint自分のマシンで作業しようとしていますが、うまくいきません。
環境
特定のバージョンと環境設定が問題にとって重要である可能性があると感じているので、特定のコンテキストをリストします。
- Windows Server 2012 R2 標準
- NPM 2.14.7
- ノード 4.2.2
- Gulp 3.9.0 をインストール
-g - Powershell 4.0 からの実行
再現
これが私の問題の再現です:
mkdir gulpscsslintとcd gulpscsslintnpm initすべてのデフォルトの回答npm install gulp --save-devnpm install gulp-scss-lint --save-devnew-item -itemtype file gulpfile.js次のように入力します。var gulp = require('gulp'), lint = require('gulp-scss-lint'); gulp.task('default', [], function() { return gulp.src('*.scss').pipe(lint()); });new-item -itemtype file styles.scssgulp
結果:
[08:48:50] Using gulpfile ~\experiments\gulpscsslint\gulpfile.js [08:48:50] Starting 'default'... [08:48:50] 'default' errored after 32 ms [08:48:50] Error in plugin 'gulp-scss-lint' Message: Error code 1 Error: Command failed: C:\Windows\system32\cmd.exe /s /c "scss-lint 'styles.scss' --format=JSON" 'scss-lint' is not recognized as an internal or external command, operable program or batch file.
期待される結果は明らかにリンターからの実際の出力でした。
それで、私は続けました:
npm install scss-lint --save-dev
しかしfailNoPython、出力からのこのスニペットで失敗します:
Can not download file from https://raw.githubusercontent.com/sass/node-sass-binaries/v2.1.1/win32-x64-node-4.2/binding.node gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable
質問
この Node パッケージをインストールするためにPythonを使用することは本当に難しい要件ですか? または、Python をインストールせずに何らかの方法でインストールできますか?
脚注として、この質問を完全に書いたので、これはGithubの問題のようなものである可能性があることに気づきましたが、そうであれば、どのパッケージまたはツールが私に与えているのかを見つける(方法を学ぶ)助けが必要かもしれませんトラブル ( gulp-scss-lint? scss-lint?または他の基礎となるパッケージ?) npm。node-sass