2016-08-30 12 views
0

처음 알았어요.환경 변수에 루비 PATH를 추가했습니다. 'grunt sass`가 작동하지 않습니다.

>grunt sass 
Running "sass:dist" (sass) task 
Warning: 
You need to have Ruby and Sass installed and in your PATH for this task to work. 
More info: https://github.com/gruntjs/grunt-contrib-sass 
Use --force to continue. 

Aborted due to warnings. 

그리고 나는 이것이 루비에 대한 경로를 추가해야한다고 생각했습니다. 그럼 난 루비의 버전을 확인하고 이것이 내가 루비 설치 한 의미 뭔가를

>ruby -v 
ruby 2.2.5p319 (2016-04-26 revision 54774) [x64-mingw32] 

을 반환했다. 이제는 꿀꿀 거리는 소리가 효과가 있지만 그래야만하고 나는 이전의 같은 메시지를 듣고 있습니다. 이 하나

내가 grunt-sass-force을 실행할 때 다음과 같은 얻을

>grunt sass 
Running "sass:dist" (sass) task 
Warning: 
You need to have Ruby and Sass installed and in your PATH for this task to work. 
More info: https://github.com/gruntjs/grunt-contrib-sass 
Use --force to continue. 

Aborted due to warnings. 

업데이트 :

>grunt sass --force 
Running "sass:dist" (sass) task 
Warning: 
You need to have Ruby and Sass installed and in your PATH for this task to work. 
More info: https://github.com/gruntjs/grunt-contrib-sass 
Used --force, continuing. 
'sass' is not recognized as an internal or external command, 
operable program or batch file. 
Warning: Exited with error code 1 Used --force, continuing. 

Done, but with warnings. 

+0

''--force''를 사용하면 어떻게됩니까? ''sass''를 설치 했습니까? – zhon

+0

@ zhon 이 뜻은 다음과 같습니다. 'grunt sass --force'? 나는'할 때 나는 다음과 같은 얻을 꿀꿀 - 말대꾸 - force' 실행 > 꿀꿀 말대꾸 --force "말대꾸 : DIST"(말대꾸) 작업을 경고 : 당신은 루비와 말대꾸를 설치하고에 있어야합니다 귀하의 이 작업이 작동하려면 PATH. 자세한 정보 : https://github.com/gruntjs/grunt-contrib-sass 사용 --force, 계속. 'sass'는 내부 또는 외부 명령, 작동 가능 프로그램 또는 배치 파일로 인식되지 않습니다. 경고 : 오류 코드 1과 함께 종료되었습니다. --force로 계속 사용합니다. 완료되었지만 경고가 표시됩니다. – user4913383

+0

''sass'' 젬을 설치 했습니까? – zhon

답변

1

당신이 gem install sasssass를 설치해야 할 것으로 보인다. 보석 없이는 루비에서 웅크 리고 작업 할 수 없습니다.

0

Sass은 원래 ruby programming language을 사용하여 제작되었습니다. node 빌드 시스템 (예., grunt, gulp, webpack)에 말대꾸를 실행하면 그들을 연결하는 rubySass과 방법을 모두 실행해야합니다 (예., grunt-contrib-sass, gulp-sass, sass-loader).

루비 플러그인은 플러그인을 설치하는 것은 쉽다, gems라고 : 한편

gem install sass 

, libsassruby을 필요로하지 않는 Sassc 구현입니다. libsass을 설치 한 후 libsassnode에 연결하는 방법이 필요합니다. node-sass으로이 작업을 수행 할 수 있습니다.

npm install node-sass 

마지막으로, LESSnode에서 실행 ruby 또는 libsass을 필요로하지 않습니다 Sass의 경쟁이다.