2013-10-04 17 views
5

Sto utilizzando il generatore webapp e sto ricevendo errori su una build predefinita. Ho creare una nuova directory ed eseguireErrori webapp Yeoman sulla build predefinita

yo webapp 

Poi

grunt 

E infine

grunt server:dist 

La console di Chrome mi dà i seguenti errori:

Allo 'Allo! a53234b6.main.js:3 
Running jQuery 1.10.2 a53234b6.main.js:3 
Failed to load resource http://127.0.0.1:35729/livereload.js?snipver=1 
Failed to load resource: the server responded with a status of 404 (Not Found) http://127.0.0.1:9000/modules/a53234b6.main.js 
Uncaught Error: Script error for: a53234b6.main 
http://requirejs.org/docs/errors.html#scripterror skitch.js:354 

Am I utilizzando i comandi sbagliati? Devo aggiornare il nodo, npm, yeoman, ecc.? Questo è uno strumento fantastico, ma potrebbe essere necessario tornare alla modalità manuale b/c non riesco a risolvere molto bene

risposta

0

Nella tua package.json, sotto devDependencies, aggiungere il seguente:

"devDependencies": { 
    ... 
    "grunt": "~0.4.2", 
    "grunt-contrib-copy": "~0.4.1", 
    "grunt-contrib-concat": "~0.3.0", 
    ... 
    "grunt-contrib-watch": "~0.5.2", 
    ... 
    "grunt-contrib-livereload": "0.1.2", // <- add this line 

Poi :

$> npm install 
$> bower install 
$> grunt server 
Problemi correlati