Okay, zuerst habe ich das getan.Hinzugefügt ruby PATH zu Umgebungsvariablen noch "grunt sass" funktioniert nicht
Und ich dachte, das macht Sinn Ich muss den Pfad zu Ruby hinzufügen, also tat ich es. Dann überprüfte ich die Version von Ruby und es gab etwas zurück
>ruby -v
ruby 2.2.5p319 (2016-04-26 revision 54774) [x64-mingw32]
das bedeutet, ich habe Ruby installiert. Jetzt sollte grunzen, aber es funktioniert nicht, und ich bekomme die gleiche alte Nachricht. Dieses:
>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.
UPDATE
ich folgendes tun, wenn ich laufen grunt-sass-force
:
>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.
Was passiert, wenn Sie ''force'' verwenden? Hast du '' sass'' installiert? – zhon
@zhon du meinst so: 'grunt sass --force'? bekomme ich folgende wenn ich 'Grunzen-Sass-force' tun > Grunzen sass --force Running "Sass: dist"(Sass) Aufgabe Achtung: Sie müssen Ruby und Sass installiert haben und in Ihrem PATH, damit diese Aufgabe funktioniert. Weitere Informationen: https://github.com/gruntjs/grunt-contrib-sass Verwendet - Force, Fortsetzung. 'sass' wird nicht als interner oder externer Befehl erkannt, ausführbare Programm- oder Stapeldatei. Warnung: Exit mit Fehlercode 1 Verwendet --force, weiter. Fertig, aber mit Warnungen. – user4913383
Hast du den Edelstein '' sass'' installiert? – zhon