ertis-research / opentwins

Innovative open-source platform that specializes in developing next-gen compositional digital twins
https://ertis-research.github.io/opentwins/
Apache License 2.0
147 stars 26 forks source link

Issue with installing the Grafana Plugin #13

Open charanhs123 opened 5 months ago

charanhs123 commented 5 months ago

Hello @juliarobles , I am trying to install Grafana plugin but I have faced the issue mentioned below

` iff@iff-HP-Z2-Tower-G4-Workstation:/etc/grafana/provisioning/digital-twins-plugin-for-grafana$ yarn install
yarn install v1.22.22
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
error marked@5.1.1: The engine "node" is incompatible with this module. Expected version ">= 18". Got "14.21.3"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.    `
sergioinf commented 5 months ago

Hi @charanhs123, You are trying to install it with node 14.21.3, try using node 18.

charanhs123 commented 5 months ago
iff@iff-HP-Z2-Tower-G4-Workstation:/etc/grafana/provisioning/digital-twins-plugin-for-grafana$ sudo yarn install
yarn install v1.22.22
[1/5] Validating package.json...
error simple-app@1.0.0: The engine "node" is incompatible with this module. Expected version ">=18". Got "12.22.9"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
iff@iff-HP-Z2-Tower-G4-Workstation:/etc/grafana/provisioning/digital-twins-plugin-for-grafana$ node --version
v18.20.3
iff@iff-HP-Z2-Tower-G4-Workstation:/etc/grafana/provisioning/digital-twins-plugin-for-grafana$ 

hello @sergioinf I am still having the issue as you can see above

sergioinf commented 5 months ago

Maybe you have an older version of node installed that is interfering with the installation?

charanhs123 commented 5 months ago

no as you can see i have installed node 18.20.3, also I changed the node value in package.json @sergioinf

sergioinf commented 5 months ago

The problem you are having is something from node, external to the plugin development. Try using this other option: There is a release version of that plugin: https://github.com/ertis-research/grafana-app-opentwins/releases/tag/latest You can download an put into Grafana directly: https://grafana.com/docs/grafana/latest/administration/plugin-management/#install-plugin-on-local-grafana

charanhs123 commented 5 months ago

hey @sergioinf i tried like you told and have added the Source code.zip to plugin folder and tried Yarn install but still showing the error like below

`   iff@iff-HP-Z2-Tower-G4-Workstation:/etc/grafana/provisioning/plugins$ sudo systemctl restart  grafana-server
iff@iff-HP-Z2-Tower-G4-Workstation:/etc/grafana/provisioning/plugins$ ls
grafana-app-opentwins-latest  sample.yaml
iff@iff-HP-Z2-Tower-G4-Workstation:/etc/grafana/provisioning/plugins$ cd grafana-app-opentwins-latest/
iff@iff-HP-Z2-Tower-G4-Workstation:/etc/grafana/provisioning/plugins/grafana-app-opentwins-latest$ ls
CHANGELOG.md  docker-compose.yaml  jest.config.js  jest-setup.js  LICENSE  package.json  README.md  src  tsconfig.json  yarn.lock
iff@iff-HP-Z2-Tower-G4-Workstation:/etc/grafana/provisioning/plugins/grafana-app-opentwins-latest$ yarn install
yarn install v1.22.22
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
error marked@5.1.1: The engine "node" is incompatible with this module. Expected version ">= 18". Got "14.21.3"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
iff@iff-HP-Z2-Tower-G4-Workstation:/etc/grafana/provisioning/plugins/grafana-app-opentwins-latest$ ls
CHANGELOG.md  docker-compose.yaml  jest.config.js  jest-setup.js  LICENSE  package.json  README.md  src  tsconfig.json  yarn.lock
iff@iff-HP-Z2-Tower-G4-Workstation:/etc/grafana/provisioning/plugins/grafana-app-opentwins-latest$ sudo nano package.json 
iff@iff-HP-Z2-Tower-G4-Workstation:/etc/grafana/provisioning/plugins/grafana-app-opentwins-latest$ yarn install
yarn install v1.22.22
[1/5] Validating package.json...
error simple-app@1.0.0: The engine "node" is incompatible with this module. Expected version ">=18". Got "14.21.3"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
iff@iff-HP-Z2-Tower-G4-Workstation:/etc/grafana/provisioning/plugins/grafana-app-opentwins-latest$ 

`

sergioinf commented 5 months ago

You don't need to use yarn install, just move to plugin folder and unpack it. I have just done it and it works.