Windows Server 2012 VM에서 처음으로 꿀꺽 꿀꺽 시도하고 있습니다. 저는 보통 Mac 사용자이기 때문에 Windows에 조금 익숙하지 않습니다. & Powershell for dev tool. Node.js & npm을 설치했습니다.의 Windows PowerShell에서Windows에서 gulp-ruby-sass가 인식 된 명령이 아닙니다.
var gulp = require('gulp'),
sass = require('gulp-ruby-sass');
gulp.task('styles', function() {
return gulp.src('Content/sass_new/application.scss')
.pipe(sass({ style: 'expanded', }))
.pipe(gulp.dest('Content/css'))
});
gulp.task('watch', function() {
gulp.watch('Content/sass_new/*', ['styles']);
})
gulp.task('default', ['styles']);
, 내가 gulp
명령을 실행하고 다음과 같은 출력
Gulpfile.js :
[10:02:57] Using gulpfile C:\[path to]\gulpfile.js
[10:02:57] Starting 'styles'...
[10:02:57] gulp-ruby-sass: 'sass' is not recognized as an internal or external command,
operable program or batch file.
[10:02:57] Finished 'styles' after 316 ms
[10:02:57] Starting 'default'...
[10:02:57] Finished 'default' after 15 μs
내 말대꾸를 컴파일하려면 다음과 같은 기본 Gulpfile을 생성 내가 여기서 뭔가를 놓치고 있니? Ruby 나 Sass를 설치해야합니까? 나는 그렇게 할 것이라고 생각했는데, 나는 Ruby 명령 프롬프트가 필요했고 PowerShell은 그것에 접근 할 수 없었다. 모든 지침을 부탁드립니다!
감사합니다. Windows에서 이러한 다양한 명령 프롬프트의 상호 작용에 여전히 익숙해졌습니다. –
감사합니다. –
@KlasMellbourn 죄송합니다, 저는 원어민이 아닙니다 :) –