Ich möchte Yeoman, Grunt und Bower zu meinem Knotenprojekt installieren.Grunt muss im System PATH installiert sein Warnung
I einen Knoten Projekt in Eclipse (unter Verwendung des nodeclipse Plugin) und navigiert in den Projektordner (wich ist H: \ Eclipse-Workspace \ YoTest) in cmd und eingegeben:
npm install yo -g
npm install generator-webapp -g
yo webapp
ausgewählt: Sass (mit Kompass), in cmd
Und dann getippt:
grunt serve
die Webapp laufen.
bekomme ich folgende Fehlermeldung:
Done, without errors.
Warning: Running "compass:server" (compass) task
Warnin: You need to have Ruby and Compass installed and in your system PATH for
this task to work. More info: https://github.com/gruntjs/grunt-contrib-compass
Use --force to continue.
Aborted due to warnings. Use --force to continue.
Aborted due to warnings.
Wie behebe ich das so, dass ich meinen Knoten Projekt mit Grunzen betreiben?
PS: Ich bin nicht sicher, ob es etwas mit dem Problem zu tun hat, aber ich habe auch die folgenden Fehler auf der Leitung 27.1 in meinem package.json erhalten:
Multiple markers at this line
- strings must use singlequote
- strings must use singlequote
Das ist mein package.json
{
"name": "yotest2",
"version": "0.0.0",
"dependencies": {},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-uglify": "~0.2.0",
"grunt-contrib-compass": "~0.7.0",
"grunt-contrib-jshint": "~0.7.0",
"grunt-contrib-cssmin": "~0.7.0",
"grunt-contrib-connect": "~0.5.0",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-htmlmin": "~0.1.3",
"grunt-bower-install": "~0.7.0",
"grunt-contrib-imagemin": "~0.2.0",
"grunt-contrib-watch": "~0.5.2",
"grunt-rev": "~0.1.0",
"grunt-autoprefixer": "~0.5.0",
"grunt-usemin": "~2.0.0",
"grunt-mocha": "~0.4.0",
"grunt-modernizr": "~0.4.0",
"grunt-newer": "~0.6.0",
"grunt-svgmin": "~0.2.0",
"grunt-concurrent": "~0.4.0",
"load-grunt-tasks": "~0.2.0",
"time-grunt": "~0.2.0",
"jshint-stylish": "~0.1.3"
},
"engines": {
"node": ">=0.8.0"
}
}
Ich bin auf Windows.
Ich bin auf Windows. Ich habe Ruby installiert und auch Compass und Sass. Ich auch folgen Sie dem Grunt-Contrib-Kompass-Tutorial, aber ich kann es immer noch nicht funktionieren. Nur so kann ich es machen funktioniert mit grunt serve --force natürlich aber dann läd es nicht css etc. –
+1 danke Eric, - @Rockyy, ich musste einfach 'gem update --system && edel install compass' laufen lassen eine Windows-Maschine, um dies zu tun. –
Sie haben keine Schreibberechtigung im Verzeichnis /Library/Ruby/Gems/1.8. Ich habe den obigen Fehler erhalten. Sudo macht es fest. –