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"

Đang mở
#2,944 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
2k
Fork
682
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.