29/03/2016

FIX npm: Cannot find module 'cordova-common' when installing Cordova

Dopo aver installato Cordova (Windows 10) mi si è presentato questo errore (lanciando cordova -v per verificare la versione):

Error: Cannot find module 'C:\Users\Username\AppData\Roaming\npm\node_modules\cordova\bin\cordova'
    at Function.Module._resolveFilename (module.js:339:15)
    at Function.Module._load (module.js:290:25)
    at Function.Module.runMain (module.js:447:10)
    at startup (node.js:139:18)
    at node.js:999:3 

Ho risolto lanciando i seguenti comandi:

 npm uninstall -g cordova 
 npm install cordova@latest 



After installing Cordova (Windows 10) I got this error (issuing cordova -v to check the version):

Error: Cannot find module 'C:\Users\Username\AppData\Roaming\npm\node_modules\cordova\bin\cordova'
    at Function.Module._resolveFilename (module.js:339:15)
    at Function.Module._load (module.js:290:25)
    at Function.Module.runMain (module.js:447:10)
    at startup (node.js:139:18)
    at node.js:999:3 

The problem has gone after I've issued the following:

 npm uninstall -g cordova 
 npm install cordova@latest 

Nessun commento: