<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to install npm packages in your app?]]></title><description><![CDATA[<p dir="auto">I've found out that it seems to be not possible to install node packages in /app/core and files can only persist in /app/data. in the data directory I have some predefined extensions ready (the app I am using is directus) and it would be awesome if I could use my custom js files during the app start. Unfortunately, I get an error (the reason should be what I already mentioned above)</p>
<pre><code>npm notice
Apr 29 10:48:16 "/app/data/extensions/endpoints/firebase/index.js"
Apr 29 10:48:16 "/app/data/extensions/hooks/firebase/index.js"
Apr 29 10:48:16 "code": "MODULE_NOT_FOUND",
Apr 29 10:48:16 "code": "MODULE_NOT_FOUND",
Apr 29 10:48:16 "message": "Cannot find module 'firebase-admin/app'\nRequire stack:\n- /app/data/extensions/hooks/firebase/index.js",
Apr 29 10:48:16 "message": "Cannot find module 'jsonwebtoken'\nRequire stack:\n- /app/data/extensions/endpoints/firebase/index.js",
Apr 29 10:48:16 "requireStack": [
Apr 29 10:48:16 "requireStack": [
Apr 29 10:48:16 "stack":
Apr 29 10:48:16 "stack":
Apr 29 10:48:16 "type": "Error",
Apr 29 10:48:16 "type": "Error",
Apr 29 10:48:16 - /app/data/extensions/endpoints/firebase/index.js
Apr 29 10:48:16 - /app/data/extensions/endpoints/firebase/index.js
Apr 29 10:48:16 - /app/data/extensions/hooks/firebase/index.js
Apr 29 10:48:16 - /app/data/extensions/hooks/firebase/index.js
Apr 29 10:48:16 Error: Cannot find module 'firebase-admin/app'
Apr 29 10:48:16 Error: Cannot find module 'jsonwebtoken'
Apr 29 10:48:16 Require stack:
Apr 29 10:48:16 Require stack:
Apr 29 10:48:16 Require stack:
Apr 29 10:48:16 Require stack:
Apr 29 10:48:16 [08:48:16.441] WARN: Cannot find module 'firebase-admin/app'
Apr 29 10:48:16 [08:48:16.441] WARN: Couldn't register hook "firebase"
Apr 29 10:48:16 [08:48:16.443] WARN: Cannot find module 'jsonwebtoken'
Apr 29 10:48:16 [08:48:16.443] WARN: Couldn't register endpoint "firebase"
Apr 29 10:48:16 [08:48:16.572] INFO: Loaded extensions: firebase, firebase
Apr 29 10:48:16 [08:48:16.765] WARN: Missing driver definition for "firebase" auth provider.
Apr 29 10:48:16 [08:48:16.765] WARN: Missing driver definition for "twitter" auth provider.
Apr 29 10:48:16 [08:48:16.836] INFO: Server started at http://0.0.0.0:8055
Apr 29 10:48:16 ]
</code></pre>
<p dir="auto">How can I make it running?</p>
]]></description><link>https://forum.cloudron.io/topic/9129/how-to-install-npm-packages-in-your-app</link><generator>RSS for Node</generator><lastBuildDate>Fri, 08 May 2026 15:30:57 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/9129.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 29 Apr 2023 08:53:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to install npm packages in your app? on Wed, 10 May 2023 14:31:18 GMT]]></title><description><![CDATA[<p dir="auto">I've found this:<br />
<a href="https://docs.cloudron.io/apps/directus/" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.cloudron.io/apps/directus/</a></p>
<p dir="auto">Example Link is not working:<br />
<a href="https://github.com/directus/directus/blob/main/api/example.env" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/directus/directus/blob/main/api/example.env</a></p>
]]></description><link>https://forum.cloudron.io/post/66387</link><guid isPermaLink="true">https://forum.cloudron.io/post/66387</guid><dc:creator><![CDATA[devtron]]></dc:creator><pubDate>Wed, 10 May 2023 14:31:18 GMT</pubDate></item><item><title><![CDATA[Reply to How to install npm packages in your app? on Wed, 10 May 2023 14:24:27 GMT]]></title><description><![CDATA[<p dir="auto">Need further assistance in this case..</p>
]]></description><link>https://forum.cloudron.io/post/66385</link><guid isPermaLink="true">https://forum.cloudron.io/post/66385</guid><dc:creator><![CDATA[devtron]]></dc:creator><pubDate>Wed, 10 May 2023 14:24:27 GMT</pubDate></item><item><title><![CDATA[Reply to How to install npm packages in your app? on Sun, 30 Apr 2023 12:38:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robi" aria-label="Profile: robi">@<bdi>robi</bdi></a></p>
<p dir="auto">Where can I find it in the docs because I did not find it yet.</p>
]]></description><link>https://forum.cloudron.io/post/65761</link><guid isPermaLink="true">https://forum.cloudron.io/post/65761</guid><dc:creator><![CDATA[devtron]]></dc:creator><pubDate>Sun, 30 Apr 2023 12:38:26 GMT</pubDate></item><item><title><![CDATA[Reply to How to install npm packages in your app? on Sat, 29 Apr 2023 21:37:48 GMT]]></title><description><![CDATA[<p dir="auto">Yes, that is a feature of Cloudron where /app/code is read-only.</p>
<p dir="auto">/app/data is the right place for custom user configs, however you need to make sure to modify the app config file or environment variables to make sure it knows where to find your custom changes.</p>
<p dir="auto">Check the Cloudron docs to see how that is done.</p>
]]></description><link>https://forum.cloudron.io/post/65710</link><guid isPermaLink="true">https://forum.cloudron.io/post/65710</guid><dc:creator><![CDATA[robi]]></dc:creator><pubDate>Sat, 29 Apr 2023 21:37:48 GMT</pubDate></item></channel></rss>