Impossible to add android platform to an ionic project

So hiow do you add a folder to your PATH variable

i have same issue but i have a mac, any idea?

I have the same problem but on a mac, any idea?

Same here … on my mac. Started about 10 days ago and still can’t find a solution.

More info that may help.

This was the error I kept getting:

(node:45285) UnhandledPromiseRejectionWarning: CordovaError: Failed to fetch platform cordova-android@~7.0.0
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: npm: Command failed with exit code 1 Error output:
npm ERR! code MODULE_NOT_FOUND
npm ERR! Cannot find module 'dezalgo'

Always dezalgo.

If I run cordova platform add android --save --verbose, I get some more detail:

Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: npm: Command failed with exit code 254 Error output:

npm ERR! path node_modules/npm/node_modules/dezalgo
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'node_modules/npm/node_modules/dezalgo' -> 'node_modules/npm/node_modules/.dezalgo.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

try

  rm -r node_modules
  npm install
  ionic cordova platform add android@7.0.0 --save

hello guys same issues for me in linux system…how to fix it that path