Dopo l'aggiornamento a nodejs 0.10.0 e NPM 1.2.14 Yeoman 1.0 beta non riesce se cerco di creare una webapp:Yeoman yo webapp fallisce con TypeError
$ yo webapp
path.js:360
throw new TypeError('Arguments to path.join must be strings');
^
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 Object.<anonymous> (/opt/nodejs/node-v0.10.0-linux-x64/lib/node_modules/yo/node_modules/yeoman-generator/node_modules/bower/lib/core/config.js:41:22)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
nodo è installato in /opt/nodejs/node-v0.10.0-linux-x64
. I NODE_PATH
punti variabili dell'ambiente a tale percorso:
$ echo $NODE_PATH
/opt/nodejs/node-v0.10.0-linux-x64
Anche yo init
fallisce con lo stesso errore.
Qualche suggerimento cosa sta succedendo qui?
Sì, dopo aver aggiornato il repository npm tramite 'npm -g update' funziona di nuovo bene. Grazie. – 0x0me
hmm. non eseguire l'aggiornamento npm -g a meno che non sia necessario. questo è l'aggiornamento di tutto e sta prendendo per sempre. e ancora non ha risolto il problema per me. – felix