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"

未关闭
#2,944 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
2k
派生
682
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。