Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm ERR! notsup Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) #24

Open
mozgbrasil opened this issue Sep 1, 2021 · 2 comments

Comments

@mozgbrasil
Copy link

mozgbrasil commented Sep 1, 2021

Good morning my friends

I am trying to install the tool but the following error is being returned.

In the container there is only 1 library, the rekit was successfully installed, but when I try to install rekit-studio the error is returned.

Step 29/31 : RUN npm install -g rekit-studio
 ---> Running in 9bfb664707cf
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! notsup Valid OS:    darwin
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   linux
npm ERR! notsup Actual Arch: x64

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/codespace/.npm/_logs/2021-08-31T23_50_13_371Z-debug.log
The command '/bin/sh -c npm install -g rekit-studio' returned a non-zero code: 1

Captura de tela de 2021-08-31 20-51-18

Thank you in advance if you can help

Tested on

$ node --version
v12.22.5

$ node --version
v14.17.4

@nsteffensen
Copy link

Same for me, but on win32 x64. fsevents is a Mac only package that I notice in some Cordova builds I've done on Windows is omitted.

I have done "npm install --global --production windows-build-tools".
Running node 8.17.0 (tried 14 and 16, but fell back to 8 due to #6)

@nsteffensen
Copy link

So NPM says rekit-studio has a dependency of fsevents (https://www.npmjs.com/package/rekit-studio?activeTab=dependencies).
Although I don't see it in (https://github.com/rekit/rekit-studio/blob/master/package.json).

This is a MacOS only package which belongs in the package.json object optionalDependencies, according to stackoverflow like so:

"optionalDependencies": {
"fsevents": "2.1.2"
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants