Open saket424 opened 3 years ago
same problem here
Same issue here too
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.
@mobamoba Your suggestion worked @endemecio02 Any chance you can push an update to package.json as suggested by @mobamoba
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
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