# Failure to install node-red-contrib-ftp-sftp(-hubone) via Palette Mgr or npm

**URL:** https://discourse.nodered.org/t/failure-to-install-node-red-contrib-ftp-sftp-hubone-via-palette-mgr-or-npm/79609
**Category:** General
**Created:** [5 July 2023 19:59 UTC](https://discourse.nodered.org/t/failure-to-install-node-red-contrib-ftp-sftp-hubone-via-palette-mgr-or-npm/79609 "2023-07-05T19:59:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jbdconsult](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jbdconsult/32/81138_2.png) [@jbdconsult](https://discourse.nodered.org/u/jbdconsult)
#### Post date: [5 July 2023 19:59 UTC](https://discourse.nodered.org/t/failure-to-install-node-red-contrib-ftp-sftp-hubone-via-palette-mgr-or-npm/79609/1 "2023-07-05T19:59:08Z")

</div>

Tried to install different versions of sftp in node-red on Windows 10 computer application to test which is better for my application and node-red-contrib-ftp-sftp failed, also -hubone version, although both use same npm install text, plus -you-ftp-sftp also failed. Was able to install -sftco, -sftp, -betterplus-sftp and -ftp without issues. I installed newer version of node to see if would fix the problem, but log only shows different failure. Prior to node upgrade, failed installs all show similar logs; this line is start of failure:  
verbose shrinkwrap failed to load package-lock.json JSONParseError: Unexpected token "{" (0x7B) in JSON at position 29795 while parsing near "... }\n },\n\t{\n \t"requires": tru..."  
After upgrade, get the following:  
error errno -4058  
165 error enoent An unknown git error occurred  
166 error enoent This is related to npm not being able to find a file.  
Sorry,but as new user, can't upload full logfiles!  
Thanks for any help you can offer.

---

<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: [5 July 2023 20:34 UTC](https://discourse.nodered.org/t/failure-to-install-node-red-contrib-ftp-sftp-hubone-via-palette-mgr-or-npm/79609/2 "2023-07-05T20:34:46Z")

</div>

Welcome to the forum @jbdconsult

> [@jbdconsult](#):
>
> 165 error enoent An unknown git error occurred  
> 166 error enoent This is related to npm not being able to find a file.

Difficult to be certain without more information, but that could mean that the node needs git to be installed, so I suggest installing that and trying again.

However, I have not found any ftp nodes that work well, so I use an Exec node calling a system command to do what I need.

---

<div class="post-metadata">

### Author: ![jbdconsult](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jbdconsult/32/81138_2.png) [@jbdconsult](https://discourse.nodered.org/u/jbdconsult)
#### Post date: [6 July 2023 17:30 UTC](https://discourse.nodered.org/t/failure-to-install-node-red-contrib-ftp-sftp-hubone-via-palette-mgr-or-npm/79609/3 "2023-07-06T17:30:27Z")

</div>

Thanks for the input. I managed to make work what I needed with a different sftp install, so no need to pursue my problem with installation. It appears most of the sftp nodes require you to use the author's directory-name to pass a path/file into the local/remote directories - this not intuitive. For example, had to replace msg.payload with msg.remoteFilePath, which I had to extract from the executable json. Pity the authors don't include notes or examples to cover this!  
I had not considered using Exec, but will look at it for future uses. Thanks again.

---

<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: [4 September 2023 17:31 UTC](https://discourse.nodered.org/t/failure-to-install-node-red-contrib-ftp-sftp-hubone-via-palette-mgr-or-npm/79609/4 "2023-09-04T17:31:13Z")

</div>

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