# Custom node changes in dev folder not loaded

**URL:** <https://discourse.nodered.org/t/custom-node-changes-in-dev-folder-not-loaded/79690>\
**Category:** Developing Nodes\
**Created:** [10 July 2023 10:55 UTC](https://discourse.nodered.org/t/custom-node-changes-in-dev-folder-not-loaded/79690 "2023-07-10T10:55:03Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![znetsixe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/znetsixe/32/72588_2.png) [@znetsixe](https://discourse.nodered.org/u/znetsixe)\
**Post date:** [10 July 2023 10:55 UTC](https://discourse.nodered.org/t/custom-node-changes-in-dev-folder-not-loaded/79690/1 "2023-07-10T10:55:03Z")

</div>

Quick question :  
On all my other window machines the changes I make in the dev folder which is linked to my github get picked up after doing npm install node-name

On 1 machine that doesnt happen for some reason...

actions tried 🙂 uninstall node red completely, uninstalled custom modules.

Does somebody know what to check so I can link the folders ?

more specifics :  
dev folder is on my c drive.  
node red is in the default location on windows.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [10 July 2023 12:00 UTC](https://discourse.nodered.org/t/custom-node-changes-in-dev-folder-not-loaded/79690/2 "2023-07-10T12:00:28Z")

</div>

You need to `npm install place/where/cloned/source/is`

Then any changes in `place/where/cloned/source/is` are picked up when you restart node-red.

---

<div class="post-metadata">

**Author:** ![znetsixe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/znetsixe/32/72588_2.png) [@znetsixe](https://discourse.nodered.org/u/znetsixe)\
**Post date:** [10 July 2023 12:42 UTC](https://discourse.nodered.org/t/custom-node-changes-in-dev-folder-not-loaded/79690/3 "2023-07-10T12:42:29Z")

</div>

yes as I have done on all the other machines. Only for this particular installation / machine it doesnt seem to pick up the changes whenever I change the clone source file.  
Even after complete re-install.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [10 July 2023 12:51 UTC](https://discourse.nodered.org/t/custom-node-changes-in-dev-folder-not-loaded/79690/4 "2023-07-10T12:51:57Z")

</div>

> [@znetsixe](#):
>
> picked up after doing npm install node-name

If you actually did that ☝ then it wont work.

As I said, you need to do `npm install place/where/cloned/source/is` NOT `npm install nodename` - and that needs to be done in the `.node-red` dir.

This creates a symlink to the source directory - which is super easy to check...

1. look in `.node-red/packge.json` - what do you see for your node in the dependencies?
2. if you create a new file in the `your-node/source` directory, do you see that appear in `.node-red/node_modules/your-node/`?

---

<div class="post-metadata">

**Author:** ![znetsixe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/znetsixe/32/72588_2.png) [@znetsixe](https://discourse.nodered.org/u/znetsixe)\
**Post date:** [10 July 2023 13:07 UTC](https://discourse.nodered.org/t/custom-node-changes-in-dev-folder-not-loaded/79690/5 "2023-07-10T13:07:35Z")

</div>

Hey steve,

Yes I have done what you wrote (so not what I wrote exactly) I referenced the location where the source is stored.

content of the package.json (since its new it only contains the one file)

```auto
{
    "name": "node-red-project",
    "description": "A Node-RED Project",
    "version": "0.0.1",
    "private": true,
    "dependencies": {
        "pump": "file:../../../typicals/node-red-contrib-pump"
    }
}

```

the weird thing is the node itself on my c drive is named differently I have installed it with the specific command :  
npm install c:/.....sourcefolder/node-red-contrib-pump

However in the modules folder of node red there the folder only is named pump , not node-red-contrib-pump

As for your second question - \> no I dont see anything happening in the node red folder for what I do in the source folder.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [10 July 2023 13:31 UTC](https://discourse.nodered.org/t/custom-node-changes-in-dev-folder-not-loaded/79690/6 "2023-07-10T13:31:38Z")

</div>

It sounds like it is wrongly linked.

Delete the dependency from package, run npm install with full path using fwd slashes starting from c:/ e.g. `c:/path/to/src`

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [10 July 2023 13:39 UTC](https://discourse.nodered.org/t/custom-node-changes-in-dev-folder-not-loaded/79690/7 "2023-07-10T13:39:42Z")

</div>

And make sure you are in the .node-red folder when you run the `npm install` command.

---

<div class="post-metadata">

**Author:** ![znetsixe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/znetsixe/32/72588_2.png) [@znetsixe](https://discourse.nodered.org/u/znetsixe)\
**Post date:** [10 July 2023 14:18 UTC](https://discourse.nodered.org/t/custom-node-changes-in-dev-folder-not-loaded/79690/8 "2023-07-10T14:18:29Z")

</div>

Hey both,

I have on all machines exactly the same... Its still not linked.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/3/531282e66a7a295b3e5666ab57f784e43a83bcaf.png)

The problem persists in the fact that Im using the source to insall but whenever there is a change to it it doesnt seem to update the clone.

---

<div class="post-metadata">

**Author:** ![znetsixe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/znetsixe/32/72588_2.png) [@znetsixe](https://discourse.nodered.org/u/znetsixe)\
**Post date:** [10 July 2023 14:36 UTC](https://discourse.nodered.org/t/custom-node-changes-in-dev-folder-not-loaded/79690/9 "2023-07-10T14:36:25Z")

</div>

> [@Steve-Mcl](#):
>
> Delete the dependency from package

Wait is this something that is done sepperatly? and could it persist after removal of node red? If that is the case how to remove dependency ? I have tried " npm remove /.../node-red-contrib-etc...

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [10 July 2023 14:48 UTC](https://discourse.nodered.org/t/custom-node-changes-in-dev-folder-not-loaded/79690/10 "2023-07-10T14:48:55Z")

</div>

> [@znetsixe](#):
>
> and could it persist after removal of node red

Yes, uninstalling node-red is completely unwarranted and unnecessary.

Uninstalling node-red removes the node-red runtime/application - it does NOT touch your `.node_red` directory. so anything that was there - will still be there.

> [@znetsixe](#):
>
> how to remove dependency ? I have tried " npm remove /.../node-red-contrib-etc

just delete the line from `package.json` & save it

* * *

PS: I recommend you actually just delete the entire `.node-red/node_modules` directory and run `npm install` from inside `.node-red` to get a fresh set of modules from npm.

followed by installation as described

> [@Steve-Mcl](#):
>
> run npm install with full path using fwd slashes starting from c:/ e.g. `c:/path/to/src`

---

<div class="post-metadata">

**Author:** ![znetsixe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/znetsixe/32/72588_2.png) [@znetsixe](https://discourse.nodered.org/u/znetsixe)\
**Post date:** [11 July 2023 11:37 UTC](https://discourse.nodered.org/t/custom-node-changes-in-dev-folder-not-loaded/79690/11 "2023-07-11T11:37:55Z")

</div>

Tried it all didnt work as intended... something tells me that npm is responsible for this mess but ill have a complete removal and reinstall of that 2.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [9 September 2023 11:38 UTC](https://discourse.nodered.org/t/custom-node-changes-in-dev-folder-not-loaded/79690/12 "2023-09-09T11:38:51Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
