OpenCTI-Platform / opencti

Open Cyber Threat Intelligence Platform
https://opencti.io
Other
6.38k stars 943 forks source link

When I run yarn install, I encounter dependency errors #8242

Closed ksi1110 closed 2 months ago

ksi1110 commented 2 months ago

Prerequisites

Description

Hello there, I tried deploying opencti on debian 11.2, I have followed the manual and installed the prerequisite components, including OpenSearch, Redis, RabbitMQ, and MinIO. Now, I am attempting to deploy OpenCTI on a local server. Both Node.js and Yarn versions are above those specified in the OpenCTI documentation, but I encounter dependency errors during the yarn install process. I have tried manually installing these dependencies, but the errors persist. I also attempted to delete the node_modules directory and package.json file, and then re-ran yarn install, but the same errors occur. After searching through community forums and resources, I am still unable to resolve the issue. I am now reaching out for assistance. Has anyone encountered a similar problem or found a solution? Any help would be greatly appreciated.

Environment

  1. OS (where OpenCTI server runs): {debian11.2, }
  2. OpenCTI version: { e.g. OpenCTI 6.2.18}
  3. OpenCTI client: { e.g. frontend}
  4. Other environment details:

Reproducible Steps

Steps to create the smallest reproducible scenario: 1.when type yarn install image

Additional information

1.when run yarn explain peer-requirements image image image

  1. when run yarn explain peer-requirements

root@debian:/opt/opencti# yarn explain peer-requirements pd1e89 _Package @aws-sdk/credential-provider-node@npm:3.632.0 is requested to provide @aws-sdk/client-sts by its descendants

@aws-sdk/credential-provider-node@npm:3.632.0 ├─ @aws-sdk/credential-provider-ini@npm:3.632.0 [4e187] (via ^3.632.0) │ └─ @aws-sdk/credential-provider-web-identity@npm:3.621.0 [4e187] (via ^3.621.0) └─ @aws-sdk/credential-provider-web-identity@npm:3.621.0 [4e187] (via ^3.621.0)

✘ Package @aws-sdk/credential-provider-node@npm:3.632.0 does not provide @aws-sdk/client-sts._ root@debian:/opt/opencti# yarn explain peer-requirements p099bc Package @aws-sdk/credential-provider-sso@npm:3.632.0 is requested to provide @aws-sdk/client-sso-oidc by its descendants

@aws-sdk/credential-provider-sso@npm:3.632.0 └─ @aws-sdk/token-providers@npm:3.614.0 [343aa] (via ^3.614.0)

✘ Package @aws-sdk/credential-provider-sso@npm:3.632.0 does not provide @aws-sdk/client-sso-oidc. root@debian:/opt/opencti# yarn explain peer-requirements p92573 Package @typescript-eslint/utils@npm:7.3.1 [7b140] is requested to provide typescript by its descendants

@typescript-eslint/utils@npm:7.3.1 [7b140] └─ @typescript-eslint/typescript-estree@npm:7.3.1 [acb6d] (via *) └─ ts-api-utils@npm:1.3.0 [0cc04] (via >=4.2.0)

✘ Package @typescript-eslint/utils@npm:7.3.1 [7b140] does not provide typescript. root@debian:/opt/opencti# yarn explain peer-requirements p2d4cc Package eslint-config-airbnb-typescript@npm:18.0.0 [5bd70] is requested to provide eslint-plugin-import by its descendants

eslint-config-airbnb-typescript@npm:18.0.0 [5bd70] └─ eslint-config-airbnb-base@npm:15.0.0 [ffb22] (via ^2.25.2)

✘ Package eslint-config-airbnb-typescript@npm:18.0.0 [5bd70] does not provide eslint-plugin-import. root@debian:/opt/opencti# yarn explain peer-requirements pa805c Package opencti-graphql@workspace:. is requested to provide webpack by its descendants

opencti-graphql@workspace:. └─ ts-loader@npm:9.5.1 [5bd70] (via ^5.0.0)

✘ Package opencti-graphql@workspace:. does not provide webpack.

image

ksi1110 commented 2 months ago

finally, I rebuilt it successfully, yarn version must be 4.1.0, then it worked.