2014-07-11 17 views
6

Sto avendo difficoltà a capire cosa significa questo errore. Ho la seguente bower.json:errore di instradamento angolare Argomenti su path.json devono essere stringhe

... 
"dependencies":{ 
"angular-route":"~1.2.18", 
"angular":"~1.2.18" 
} 

Su installando i miei pacchetti Bower attraverso bower install ottengo il seguente errore:

bower angular-route#~1.2.20  error Arguments to path.join must be strings 
Stack trace: 
TypeError: Arguments to path.join must be strings 
    at path.js:360:15 
    at Array.filter (native) 
    at Object.exports.join (path.js:358:36) 
    at GitHubResolver._checkout (/home/ubuntu/.nvm/v0.10.26/lib/node_modules/bower/lib/core/resolvers/GitHubResolver.js:54:21) 
    at /home/ubuntu/.nvm/v0.10.26/lib/node_modules/bower/lib/core/resolvers/GitResolver.js:69:21 
    at _fulfilled (/home/ubuntu/.nvm/v0.10.26/lib/node_modules/bower/node_modules/p-throttler/node_modules/q/q.js:798:54) 
    at self.promiseDispatch.done (/home/ubuntu/.nvm/v0.10.26/lib/node_modules/bower/node_modules/p-throttler/node_modules/q/q.js:827:30) 
    at Promise.promise.promiseDispatch (/home/ubuntu/.nvm/v0.10.26/lib/node_modules/bower/node_modules/p-throttler/node_modules/q/q.js:760:13) 
    at /home/ubuntu/.nvm/v0.10.26/lib/node_modules/bower/node_modules/p-throttler/node_modules/q/q.js:574:44 
    at flush (/home/ubuntu/.nvm/v0.10.26/lib/node_modules/bower/node_modules/p-throttler/node_modules/q/q.js:108:17) 
Console trace: 
Trace 
    at StandardRenderer.error (/home/ubuntu/.nvm/v0.10.26/lib/node_modules/bower/lib/renderers/StandardRenderer.js:72:17) 
    at Logger.<anonymous> (/home/ubuntu/.nvm/v0.10.26/lib/node_modules/bower/bin/bower:111:22) 
    at Logger.EventEmitter.emit (events.js:95:17) 
    at Logger.emit (/home/ubuntu/.nvm/v0.10.26/lib/node_modules/bower/node_modules/bower-logger/lib/Logger.js:29:39) 
    at /home/ubuntu/.nvm/v0.10.26/lib/node_modules/bower/lib/commands/index.js:40:20 
    at _rejected (/home/ubuntu/.nvm/v0.10.26/lib/node_modules/bower/node_modules/q/q.js:797:24) 
    at /home/ubuntu/.nvm/v0.10.26/lib/node_modules/bower/node_modules/q/q.js:823:30 
    at Promise.when (/home/ubuntu/.nvm/v0.10.26/lib/node_modules/bower/node_modules/q/q.js:1035:31) 
    at Promise.promise.promiseDispatch (/home/ubuntu/.nvm/v0.10.26/lib/node_modules/bower/node_modules/q/q.js:741:41) 
    at /home/ubuntu/.nvm/v0.10.26/lib/node_modules/bower/node_modules/q/q.js:557:44 
System info: 
Bower version: 1.3.7 
Node version: 0.10.26 
OS: Linux 3.13.0-29-generic x64 

Ora, devo dire che ho fatto la stessa cosa per circa un settimana, e tutto funzionava correttamente, con esattamente la stessa configurazione. Ho notato che lo https://github.com/angular/angular.js ha rilasciato recentemente una nuova versione 1.2.20, ma anche installando ho lo stesso errore.

Alcuni contesto: sto utilizzando nodejs, express e angolare nella mia applicazione. Posso fornire maggiori informazioni se necessario (ad esempio, package.json, file del server principale). Qualsiasi aiuto sarebbe molto apprezzato.

+0

Solo per divertimento. Provalo con '*' (qualsiasi versione) e vedi quale versione (se esiste) installa. –

+0

Ho appena chiesto informazioni su questo in IRC perché sto avendo lo stesso problema. Ne sono consapevoli e stanno lavorando a una correzione in questo momento. – Kris

+0

Hanno suggerito qual è il problema? È solo un problema con alcuni siti che non funzionano correttamente o che devo scaricare una patch o versioni di aggiornamento? – adaykin

risposta

Problemi correlati