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

TeamCity: Unsupported platform for fsevents #54

Closed
JohnnyDevNull opened this issue Feb 27, 2024 · 1 comment
Closed

TeamCity: Unsupported platform for fsevents #54

JohnnyDevNull opened this issue Feb 27, 2024 · 1 comment

Comments

@JohnnyDevNull
Copy link

I'm trying to integrate this library in our monorepo nx.dev setup with Husky.

But on the TeamCity CI/CD I cannot get it to work because of this error:


npm verb Linux 5.4.0-171-generic
npm verb node v18.19.1
npm verb npm  v10.2.4
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin"} (current: {"os":"linux"})
npm ERR! notsup Valid os:  darwin
npm ERR! notsup Actual os: linux
npm verb exit 1
npm verb code 1

After some research and investigation with --omit=optional I dived a little bit deeper into the package-lock.json and it seem that it's not optional for this library:

    "node_modules/branch-name-lint/node_modules/fsevents": {
      "version": "2.3.2",
      "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
      "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
      "extraneous": true,
      "hasInstallScript": true,
      "os": [
        "darwin"
      ],
      "engines": {
        "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
      }
    }

Would it be possible that you change this dependency to optional?

@JohnnyDevNull JohnnyDevNull changed the title Unsupported platform for fsevents TeamCity: Unsupported platform for fsevents Feb 27, 2024
@JohnnyDevNull
Copy link
Author

Solution:

We've integrated the logic within our own nx-tools extension

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

1 participant