-
I am trying to embed metabase dashboard to directus
need to install JWT but below command throwing me an error
$ npm install jsonwebtoken

can someone help how to install it through a terminal
-
I am trying to embed metabase dashboard to directus
need to install JWT but below command throwing me an error
$ npm install jsonwebtoken

can someone help how to install it through a terminal
@Jeyakumarrathnaselvi if its not packaged into the app directly you can't do it.
Since the core of the app is read-only.Would it not work to use the metabase app directly?
I also found your discussion here:
https://github.com/directus/directus/discussions/15615
One option for testing, although not persistent.
Start the app in recovery mode and install all you need.
Then start the app via/app/pkg/start.shhttps://git.cloudron.io/cloudron/directus-app/-/blob/master/Dockerfile#L13
-
@Jeyakumarrathnaselvi if its not packaged into the app directly you can't do it.
Since the core of the app is read-only.Would it not work to use the metabase app directly?
I also found your discussion here:
https://github.com/directus/directus/discussions/15615
One option for testing, although not persistent.
Start the app in recovery mode and install all you need.
Then start the app via/app/pkg/start.shhttps://git.cloudron.io/cloudron/directus-app/-/blob/master/Dockerfile#L13
@BrutalBirdie oh and if you find a way to get it working, document they way you made it working here so some appdev may add your changed persistent

-
@BrutalBirdie I tried but it is not allowing me to install it
-
G girish moved this topic from Support on
-
@BrutalBirdie I tried but it is not allowing me to install it
-
@Jeyakumarrathnaselvi Are you having to install new npm modules because you are developing some directus plugin/extension?
@girish Yes but not able install. i tried installing in recovery but after installing. app is crashing
i need to install jsonwebtoken
-
@girish Yes but not able install. i tried installing in recovery but after installing. app is crashing
i need to install jsonwebtoken
@Jeyakumarrathnaselvi Can someone help
-
@Jeyakumarrathnaselvi Can someone help
@Jeyakumarrathnaselvi I am not sure how this can be solved in Cloudron context. Essentially, the situation here is that we want to add extra code to an app which brings it's own dependencies/libraries.
Where/how does a Directus extension load extra node_modules from? Can it be under the extensions directory or does it have to be installed system wide? If it's latter, I am afraid we are out of luck and this is not possible with Cloudron.
-
@Jeyakumarrathnaselvi I am not sure how this can be solved in Cloudron context. Essentially, the situation here is that we want to add extra code to an app which brings it's own dependencies/libraries.
Where/how does a Directus extension load extra node_modules from? Can it be under the extensions directory or does it have to be installed system wide? If it's latter, I am afraid we are out of luck and this is not possible with Cloudron.
@girish I was looking into adding extensions for Directus, more specifically this one: https://github.com/dimitrov-adrian/directus-extension-masked-interface
Do you think it will work or does using
npm installmeans it's always a system-wide installation? -
@girish I was looking into adding extensions for Directus, more specifically this one: https://github.com/dimitrov-adrian/directus-extension-masked-interface
Do you think it will work or does using
npm installmeans it's always a system-wide installation? -
@girish I was looking into adding extensions for Directus, more specifically this one: https://github.com/dimitrov-adrian/directus-extension-masked-interface
Do you think it will work or does using
npm installmeans it's always a system-wide installation?@ruihildt I've installed a few extensions from that repo and what I usually do is clone it locally, run
npm installandnpm run build, this will create adistfolder with theindex.js-files that you can upload into the correlating extensions-folder via the file manager. Not sure if this applies to this very extension, because the description is missing, but it worked for various others. I just tried it and it installs fine, but I haven't uploaded it (and don't forget to restart Directus, it will tell you which extensions were loaded) -
@ruihildt I've installed a few extensions from that repo and what I usually do is clone it locally, run
npm installandnpm run build, this will create adistfolder with theindex.js-files that you can upload into the correlating extensions-folder via the file manager. Not sure if this applies to this very extension, because the description is missing, but it worked for various others. I just tried it and it installs fine, but I haven't uploaded it (and don't forget to restart Directus, it will tell you which extensions were loaded)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login