ionic 2 – Error Could not find an installed version of Gradle either in Android Studio

I create ionic 2 project and add diagnostic cordova plugin like this : ionic plugin add cordova.plugins.diagnostic npm install –save @ionic-native/diagnostic and add android platform like this : ionic platform add android@latest but when build with ionic build android console give me this error : Error: Could not find an installed version of Gradle either … Read more

Error: Cannot find module ‘../lib/utils/unsupported.js’ while using Ionic

I always get this error message when I run “Ionic start project name”: Error message Running command – failed![ERROR] An error occurred while running npm install (exit code 1): module.js:471 throw err; ^ Error: Cannot find module ‘../lib/utils/unsupported.js’ at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at /usr/local/lib/node_modules/npm/bin/npm-cli.js:19:21 at Object.<anonymous> (/usr/local/lib/node_modules/npm/bin/npm-cli.js:79:3) … Read more