0

I've a problem with ionic android running. When start the running 'ionic add platform os' showing me an error. I am running in windows. But not able resolve this. kindly help me to solve this issue. i have tried 'npm install -g cordova, npm install -g ionic' but still this issue comes. is there any restrictions that eclipse should not run. or any other problem.

ionic add platform os
module.js:339
    throw err;
Error: Cannot find module 'cordova-common'
     (C:\Users\Administrator\AppData\Roaming\npm\node_modul
es\cordova\node_modules\cordova-lib\src\plugman\plugman.js:22:14)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
ArK
  • 20,698
  • 67
  • 109
  • 136
Jambu
  • 21
  • 1

1 Answers1

0

Path setting for windows...

User Variable
ANDROID_HOME
E:\ionic bundle\bundle\adt-bundle-windows\sdk
----
Environment Variable
PATH
E:\ionic bundle\bundle\adt-bundle-windows\sdk\platform-tools;
E:\ionic bundle\bundle\apache-ant-1.9.4-bin\apache-ant-1.9.4\bin;

Change above path as per your sdk setting

Paresh Gami
  • 4,777
  • 5
  • 23
  • 41