How can I integrate and run template with stable git repo?

Hello.

I am new with Grafana.
I’ve installed the stable version of grafana using apt on ubuntu.
It works well without any errors using service cmd.
After that, I cloned one grafana template called grafana-react-panel.
I’d like to integrate it and display on community.grafana.com.

How can I do this?
Please share the solution link or information for me.
Thanks

Hi @hakuna0829, and welcome to the Grafana community forums :slight_smile:

Are you trying to build your own plugin? If so, check out the documentation here:

Otherwise, could you share more details of what you’re trying to do?

Hi, Marcus.

Thanks for your advise.
I run the cmd in the root dir of plugin by folllowing build plugin guid.

npx @grafana/toolkit plugin:create my-grafana-plugin

But I’ve got this error in terminal.

Blockquote
Unable to save binary /home/hakuna/.npm/_npx/34002/lib/node_modules/@grafana/toolkit/node_modules/node-sass/vendor/linux-x64-72 : Error: EACCES: permission denied, mkdir ‘/home/hakuna/.npm/_npx/34002/lib/node_modules/@grafana/toolkit/node_modules/node-sass/vendor’
at Object.mkdirSync (fs.js:921:3)
at sync (/home/hakuna/.npm/_npx/34002/lib/node_modules/@grafana/toolkit/node_modules/mkdirp/index.js:72:13)
at Function.sync (/home/hakuna/.npm/_npx/34002/lib/node_modules/@grafana/toolkit/node_modules/mkdirp/index.js:78:24)
at checkAndDownloadBinary (/home/hakuna/.npm/_npx/34002/lib/node_modules/@grafana/toolkit/node_modules/node-sass/scripts/install.js:114:11)
at Object. (/home/hakuna/.npm/_npx/34002/lib/node_modules/@grafana/toolkit/node_modules/node-sass/scripts/install.js:157:1)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
at Function.Module._load (internal/modules/cjs/loader.js:878:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) {
errno: -13,
syscall: ‘mkdir’,
code: ‘EACCES’,
path: ‘/home/hakuna/.npm/_npx/34002/lib/node_modules/@grafana/toolkit/node_modules/node-sass/vendor’
}
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli ‘/usr/bin/node’,
gyp verb cli ‘/home/hakuna/.npm/_npx/34002/lib/node_modules/@grafana/toolkit/node_modules/node-gyp/bin/node-gyp.js’,
gyp verb cli ‘rebuild’,
gyp verb cli ‘–verbose’,
gyp verb cli ‘–libsass_ext=’,
gyp verb cli ‘–libsass_cflags=’,
gyp verb cli ‘–libsass_ldflags=’,
gyp verb cli ‘–libsass_library=’
gyp verb cli ]
gyp info using node-gyp@3.8.0
gyp info using node@12.18.3 | linux | x64
gyp verb command rebuild
gyp verb command clean
gyp verb clean removing “build” directory
gyp verb command configure
gyp verb check python checking for Python executable “python2” in the PATH
gyp verb which succeeded python2 /usr/bin/python2
gyp verb check python version /usr/bin/python2 -c "import sys; print "2.7.17 gyp verb check python version .%s.%s" % sys.version_info[:3];" returned: %j
gyp verb get node dir no --target version specified, falling back to host node version: 12.18.3
gyp verb command install [ ‘12.18.3’ ]
gyp verb install input version string “12.18.3”
gyp verb install installing version: 12.18.3
gyp verb install --ensure was passed, so won’t reinstall if already installed
gyp verb install version is already installed, need to check “installVersion”
gyp verb got “installVersion” 9
gyp verb needs “installVersion” 9
gyp verb install version is good
gyp verb get node dir target node version installed: 12.18.3
gyp verb build dir attempting to create “build” dir: /home/hakuna/.npm/_npx/34002/lib/node_modules/@grafana/toolkit/node_modules/node-sass/build
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir ‘/home/hakuna/.npm/_npx/34002/lib/node_modules/@grafana/toolkit/node_modules/node-sass/build’
gyp ERR! System Linux 4.15.0-112-generic
gyp ERR! command “/usr/bin/node” “/home/hakuna/.npm/_npx/34002/lib/node_modules/@grafana/toolkit/node_modules/node-gyp/bin/node-gyp.js” “rebuild” “–verbose” “–libsass_ext=” “–libsass_cflags=” “–libsass_ldflags=” “–libsass_library=”
gyp ERR! cwd /home/hakuna/.npm/_npx/34002/lib/node_modules/@grafana/toolkit/node_modules/node-sass
gyp ERR! node -v v12.18.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.14.1 postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.14.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/hakuna/.npm/_logs/2020-08-19T15_03_00_469Z-debug.log
Install for [ ‘@grafana/toolkit@latest’ ] failed with code 1

Blockquote

I’ve installed already stable version on my Ubuntu OS 18.04.
Also, I’d like to add this grafana repo called simple react panel in my local.

But, I am not sure how I can add it in the original stable grafana.
Please guide me.
thanks