<?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 update/change a package.json in /app/code]]></title><description><![CDATA[<p dir="auto">Since I need to add some custom files in app/data, I need to include some other packages in my node app (package.json) that only lives in /app/code. But it is always overwritten after a restart so my question is how to persist the new packages in my package.json? What tricks are possible?</p>
]]></description><link>https://forum.cloudron.io/topic/9195/how-to-update-change-a-package-json-in-app-code</link><generator>RSS for Node</generator><lastBuildDate>Sat, 08 Aug 2026 16:54:44 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/9195.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 11 May 2023 02:51:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to update/change a package.json in /app/code on Sun, 14 May 2023 04:55:32 GMT]]></title><description><![CDATA[<p dir="auto">Documented here - <a href="https://docs.cloudron.io/apps/directus/#custom-modules" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.cloudron.io/apps/directus/#custom-modules</a></p>
]]></description><link>https://forum.cloudron.io/post/66670</link><guid isPermaLink="true">https://forum.cloudron.io/post/66670</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Sun, 14 May 2023 04:55:32 GMT</pubDate></item><item><title><![CDATA[Reply to How to update/change a package.json in /app/code on Sat, 13 May 2023 06:48:37 GMT]]></title><description><![CDATA[<p dir="auto">I was able to run the scripts. I just needed to init them with npm init and add the packages in the package.json. Each of them has their own node_modules now. Thanks for your help <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f44d.png?v=a3d9da63442" class="not-responsive emoji emoji-android emoji--+1" style="height:23px;width:auto;vertical-align:middle" title="👍" alt="👍" /></p>
]]></description><link>https://forum.cloudron.io/post/66618</link><guid isPermaLink="true">https://forum.cloudron.io/post/66618</guid><dc:creator><![CDATA[devtron]]></dc:creator><pubDate>Sat, 13 May 2023 06:48:37 GMT</pubDate></item><item><title><![CDATA[Reply to How to update/change a package.json in /app/code on Thu, 11 May 2023 19:56:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/devtron" aria-label="Profile: devtron">@<bdi>devtron</bdi></a> I don't know much about Directus extensions. But it looks like say <a href="https://github.com/dimitrov-adrian/directus-extension-searchsync" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/dimitrov-adrian/directus-extension-searchsync</a> is an extension ? Each extension has a package.json of it's own.</p>
<p dir="auto">(If the above is correct...)</p>
<ul>
<li>You can then npm install in the extension's subdirectory</li>
<li>Then, in <code>/app/data/env.sh</code> just add <code>export NODE_PATH=/app/data/extensions/myext/node_modules</code> and restart the app.</li>
</ul>
<p dir="auto">Would something like above work? NODE_PATH sets the search directory for node modules. You can even set multiple paths separated by colon.</p>
]]></description><link>https://forum.cloudron.io/post/66501</link><guid isPermaLink="true">https://forum.cloudron.io/post/66501</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Thu, 11 May 2023 19:56:40 GMT</pubDate></item><item><title><![CDATA[Reply to How to update/change a package.json in /app/code on Thu, 11 May 2023 19:25:40 GMT]]></title><description><![CDATA[<p dir="auto">I guess this is related to <a href="https://forum.cloudron.io/topic/9129/how-to-install-npm-packages-in-your-app/3">https://forum.cloudron.io/topic/9129/how-to-install-npm-packages-in-your-app/3</a> .</p>
<p dir="auto">mm, so far , we haven't found a good way to do this. You want to install custom node modules for your extension, correct ?</p>
]]></description><link>https://forum.cloudron.io/post/66496</link><guid isPermaLink="true">https://forum.cloudron.io/post/66496</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Thu, 11 May 2023 19:25:40 GMT</pubDate></item><item><title><![CDATA[Reply to How to update/change a package.json in /app/code on Thu, 11 May 2023 12:20:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> Directus</p>
]]></description><link>https://forum.cloudron.io/post/66467</link><guid isPermaLink="true">https://forum.cloudron.io/post/66467</guid><dc:creator><![CDATA[devtron]]></dc:creator><pubDate>Thu, 11 May 2023 12:20:43 GMT</pubDate></item><item><title><![CDATA[Reply to How to update/change a package.json in /app/code on Thu, 11 May 2023 11:13:56 GMT]]></title><description><![CDATA[<p dir="auto">Which app is this then? Custom node_modules have to be supported by the app or the package</p>
]]></description><link>https://forum.cloudron.io/post/66464</link><guid isPermaLink="true">https://forum.cloudron.io/post/66464</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Thu, 11 May 2023 11:13:56 GMT</pubDate></item><item><title><![CDATA[Reply to How to update/change a package.json in /app/code on Thu, 11 May 2023 05:46:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a><br />
From the AppStore</p>
]]></description><link>https://forum.cloudron.io/post/66441</link><guid isPermaLink="true">https://forum.cloudron.io/post/66441</guid><dc:creator><![CDATA[devtron]]></dc:creator><pubDate>Thu, 11 May 2023 05:46:55 GMT</pubDate></item><item><title><![CDATA[Reply to How to update/change a package.json in /app/code on Thu, 11 May 2023 04:57:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/devtron" aria-label="Profile: devtron">@<bdi>devtron</bdi></a> Is this a custom app? Or some app from the App Store ?</p>
]]></description><link>https://forum.cloudron.io/post/66428</link><guid isPermaLink="true">https://forum.cloudron.io/post/66428</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Thu, 11 May 2023 04:57:07 GMT</pubDate></item></channel></rss>