GlobalNOC / globalnoc-worldview-panel

Network Map Panel For Grafana Made With React + TypeScript
Apache License 2.0
23 stars 3 forks source link

Build on Centos7: node-sass fails #1

Open bbczeuz opened 3 years ago

bbczeuz commented 3 years ago

Problem

Unable to install plugin on Centos7

Environment

Steps to reproduce

Workaround

As suggested in https://stackoverflow.com/questions/67241196/error-no-template-named-remove-cv-t-in-namespace-std-did-you-mean-remove : Downgrading nodejs to a version below 16 could help. I tested this and it works.

Suggestion

Following issue https://github.com/sass/node-sass/issues/3077 and add compatibility to the current nodejs-Version

bbczeuz commented 3 years ago

There is another issue when building on Centos7:

[...]
Error from chokidar (/var/lib/grafana/plugins/globalnoc-worldview-panel): Error: ENOSPC: System limit for number of file watchers reached, watch '/var/lib/grafana/plugins/globalnoc-worldview-panel/.prettierrc.js'
Error from chokidar (/var/lib/grafana/plugins/globalnoc-worldview-panel): Error: ENOSPC: System limit for number of file watchers reached, watch '/var/lib/grafana/plugins/globalnoc-worldview-panel/CHANGELOG.md'
Error from chokidar (/var/lib/grafana/plugins/globalnoc-worldview-panel): Error: ENOSPC: System limit for number of file watchers reached, watch '/var/lib/grafana/plugins/globalnoc-worldview-panel/LICENSE'
[...]

which can be circumvented by increasing sysctl fs.inotify.max_user_watches