ionic-team / ionic-team/ionic-cli

When try to install platform android it trow this error "npm ERR! notsup Unsupported platform for fsevents@1.1.3"

Abierto
#2,944 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
2k
Forks
682
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

When I'm trying to install Android platform using

`ionic cordova platform add android`

It trow me the following error
```
Error: Failed to fetch platform cordova-android@6.4.0
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: cmd: Command failed with exit code 1 Error output:
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! notsup Valid OS: darwin
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: win32
npm ERR! notsup Actual Arch: x64

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\xxxxxxxxx\AppData\Roaming\npm-cache\_logs\2018-01-05T12_46_13_270Z-debug.log
[ERROR] Exception:
```
`ionic info`

```
cli packages: (C:\Users\xxxxxxxxx\AppData\Roaming\npm\node_modules)

@ionic/cli-utils : 1.19.0
ionic (Ionic CLI) : 3.19.0

global packages:

cordova (Cordova CLI) : 7.1.0

local packages:

@ionic/app-scripts : 3.1.7
Cordova Platforms : none
Ionic Framework : ionic-angular 3.9.2

System:

Android SDK Tools : 26.1.1
Node : v6.12.0
npm : 5.3.0
OS : Windows 10

Environment Variables:

ANDROID_HOME : C:\Users\xxxxxxxxx\AppData\Local\Android\Sdk

Misc:

backend : pro

```
**I tried:**

1. Uninstall ionic and install again `npm uninstall -g ionic` and `npm install -g ionic --verbose`
2. Removed node_modules and run `npm install`
3. Downgrade npm from 5.6.0 to 5.3.0

But non of the above works

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.