endemecio02 / node-red-contrib-httpauth

Node-RED node for HTTP Basic/Digest Auth
GNU General Public License v2.0
8 stars 12 forks source link

node incompatible with node-red 2.0 #9

Open saket424 opened 3 years ago

saket424 commented 3 years ago

2021-07-26T13:36:36.833Z Install : node-red-contrib-auth 0.1.7

2021-07-26T13:36:36.934Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-auth@0.1.7 2021-07-26T13:36:41.527Z [out] + node-red-contrib-auth@0.1.7 2021-07-26T13:36:41.527Z [out] added 19 packages from 15 contributors in 3.853s 2021-07-26T13:36:41.548Z rc=0


2021-07-26T13:38:45.917Z Install : node-red-contrib-httpauth 1.0.12

2021-07-26T13:38:46.033Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-httpauth@1.0.12 2021-07-26T13:38:48.480Z [err] npm 2021-07-26T13:38:48.481Z [err] ERR! code ENOTSUP 2021-07-26T13:38:48.494Z [err] npm 2021-07-26T13:38:48.494Z [err] ERR! notsup Unsupported engine for node-red-contrib-httpauth@1.0.12: wanted: {"node":"^0.12.7"} (current: {"node":"14.17.3","npm":"6.14.13"}) 2021-07-26T13:38:48.494Z [err] npm ERR! 2021-07-26T13:38:48.494Z [err] notsup Not compatible with your version of node/npm: node-red-contrib-httpauth@1.0.12 2021-07-26T13:38:48.494Z [err] npm 2021-07-26T13:38:48.494Z [err] ERR! notsup 2021-07-26T13:38:48.494Z [err] Not compatible with your version of node/npm: node-red-contrib-httpauth@1.0.12 2021-07-26T13:38:48.494Z [err] npm ERR! 2021-07-26T13:38:48.494Z [err] notsup Required: {"node":"^0.12.7"} 2021-07-26T13:38:48.494Z [err] npm 2021-07-26T13:38:48.494Z [err] ERR! notsup Actual: {"npm":"6.14.13","node":"14.17.3"} 2021-07-26T13:38:48.501Z [err] 2021-07-26T13:38:48.501Z [err] npm ERR! A complete log of this run can be found in: 2021-07-26T13:38:48.501Z [err] npm ERR! /data/.npm/_logs/2021-07-26T13_38_48_495Z-debug.log 2021-07-26T13:38:48.510Z rc=1

ahakobyan79 commented 2 years ago

same problem here

felice64 commented 2 years ago

Same issue here too

mobamoba commented 2 years ago

Clone the git, go into the package.json and change "node":"^0.12.7" to "node":">=0.12.7" (which is just saying it can use a higher version) then copy the node-red-contrib-httpauth folder to the node_modules subfolder in your node-red directory, restart NR, and it should work fine.

saket424 commented 1 year ago

@mobamoba Your suggestion worked @endemecio02 Any chance you can push an update to package.json as suggested by @mobamoba

Alkarex commented 10 months ago

Hello, Long time, but if any of you is still around, I am merging several nodes and their forks and some of their pending PRs into one. New node: https://flows.nodered.org/node/@alexandrainst/node-red-http-basic-auth