rekit-studio
rekit-studio copied to clipboard
npm ERR! notsup Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
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 [email protected]: 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 [email protected]: 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
Thank you in advance if you can help
Tested on
$ node --version v12.22.5
$ node --version v14.17.4
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 https://github.com/rekit/rekit-studio/issues/6)
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" },