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"

Aperta
#2,944 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
2k
Fork
682
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.