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

貢獻指南

開啟貢獻指南

研究方向

Start by reproducing `ionic cordova platform add android` on the Windows 10, Node v6.12.0, npm 5.3.0 setup described in the issue and review the reported `fsevents@1.1.3` error. Check whether Android platform installation completes successfully after identifying the platform-specific dependency failure.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
android, node.js
領域
cli
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
20/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。