Error: Cannot find module 'cordova-common'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modul
es\cordova\node_modules\cordova-lib\src\plugman\plugman.js:22:14)
at Module._compile (module.js:397:26)
at Object.Module._extensions..js (module.js:404:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
英文不好才看教程 但是教程好像有些过时了
Begin by cloning or downloading the zip file for the cordova-android Apache Cordova project for Android. Run the following command to execute the create script from the directory containing the cordova-android base project you cloned or unzipped locally to create the default Hello Cordova project. (If you unzipped into your user directory then you should run it from there).
猜想应该是要下载一个包 然后在这个包目录下运行
入门被挡求答案啊!
最后没有办法用官方的安装命令
$ phonegap create my-app$ cd my-app
$ phonegap run android
成功了导入成功以后
再次出现错误