windkh / node-red-contrib-telegrambot

Telegram bot nodes for node-red.
Other
256 stars 116 forks source link

Install error npm ERR! errno -95 - npm ERR! syscall symlink - Docker #312

Closed nkgiovannivl closed 1 year ago

nkgiovannivl commented 1 year ago

Hi,

I'm using Node RED in docker and trying to install from pallette, I'm getting error, below my log, how can I fix it? Thanks!

image

-----------------------------------------------------------
2023-06-02T13:18:36.670Z Install : node-red-contrib-telegrambot 15.1.1

2023-06-02T13:18:36.664Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-telegrambot@15.1.1
2023-06-02T13:18:37.262Z [err] npm
2023-06-02T13:18:37.262Z [err]  WARN config
2023-06-02T13:18:37.262Z [err]  production Use `--omit=dev` instead.
2023-06-02T13:21:31.416Z [err] npm
2023-06-02T13:21:31.417Z [err]  WARN deprecated har-validator@5.1.5: this library is no longer supported
2023-06-02T13:21:34.907Z [err] npm WARN
2023-06-02T13:21:34.907Z [err]  deprecated request-promise@4.2.6: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
2023-06-02T13:21:49.894Z [err] npm
2023-06-02T13:21:49.895Z [err]  WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
2023-06-02T13:22:07.776Z [err] npm 
2023-06-02T13:22:07.776Z [err] WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
2023-06-02T13:32:41.705Z [err] npm ERR! code ENOTSUP
2023-06-02T13:32:41.706Z [err] npm ERR! syscall symlink
2023-06-02T13:32:41.706Z [err] npm ERR! path ../sshpk/bin/sshpk-conv
2023-06-02T13:32:41.706Z [err] npm ERR! dest /data/node_modules/.bin/sshpk-conv
2023-06-02T13:32:41.706Z [err] npm ERR! errno -95
2023-06-02T13:32:41.708Z [err] npm ERR! ENOTSUP: operation not supported on socket, symlink '../sshpk/bin/sshpk-conv' -> '/data/node_modules/.bin/sshpk-conv'
2023-06-02T13:32:41.710Z [err] 
2023-06-02T13:32:41.710Z [err] npm ERR! A complete log of this run can be found in:
2023-06-02T13:32:41.710Z [err] npm ERR!
2023-06-02T13:32:41.710Z [err]      /data/.npm/_logs/2023-06-02T13_18_37_222Z-debug-0.log
2023-06-02T13:32:41.722Z rc=161
windkh commented 1 year ago

Hm no idea. What node and node-red version do you use?

nkgiovannivl commented 1 year ago

Well, I Installed via command line in my docker over my /data directory using --no-bin-links option

npm install --no-bin-links --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --omit=dev --engine-strict node-red-contrib-telegrambot

windkh commented 1 year ago

What is inside the log file? 2023-06-02T13_18_37_222Z-debug-0.log

windkh commented 1 year ago

@nkgiovannivl : can you please answer the question above?

nkgiovannivl commented 1 year ago

Checking my node red install procedure in docker, I found problems related to access rights in a shared /data CIFS, changing to a local folder in my node red installation the problem was resolved, Thansk!

windkh commented 1 year ago

Ah cool thanks for the info