bestlong / node-red-contrib-mssql-plus

A Node-RED node to read and write to Microsoft MS SQL Databases
MIT License
31 stars 18 forks source link

Can't install using the Palette Manager #67

Closed guilhermep closed 1 year ago

guilhermep commented 1 year ago

Just tried installing this node in a fresh Node-RED docker container using the "manage palette" option and it gives me the following error:

-----------------------------------------------------------
2023-01-25T19:16:36.327Z Install : node-red-contrib-mssql-plus 0.9.1

2023-01-25T19:16:35.093Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-mssql-plus@0.9.1
2023-01-25T19:16:35.389Z [err] npm
2023-01-25T19:16:35.389Z [err]  WARN config
2023-01-25T19:16:35.389Z [err]  production Use `--omit=dev` instead.
2023-01-25T19:16:44.499Z [err] npm
2023-01-25T19:16:44.499Z [err]  ERR! code EBADENGINE
2023-01-25T19:16:44.500Z [err] npm 
2023-01-25T19:16:44.500Z [err] ERR! engine Unsupported engine
2023-01-25T19:16:44.501Z [err] npm ERR! engine
2023-01-25T19:16:44.501Z [err]  Not compatible with your version of node/npm: node-abort-controller@3.1.0
2023-01-25T19:16:44.501Z [err] npm ERR! notsup Not compatible with your version of node/npm: node-abort-controller@3.1.0
2023-01-25T19:16:44.501Z [err] npm ERR!
2023-01-25T19:16:44.501Z [err]  notsup Required: {"node":"<14.7.0"}
2023-01-25T19:16:44.501Z [err] npm ERR! notsup Actual:   {"npm":"8.11.0","node":"v16.16.0"}
2023-01-25T19:16:44.502Z [err] 
2023-01-25T19:16:44.502Z [err] npm ERR!
2023-01-25T19:16:44.502Z [err]  A complete log of this run can be found in:
2023-01-25T19:16:44.502Z [err] npm ERR!     /data/.npm/_logs/2023-01-25T19_16_35_368Z-debug-0.log
2023-01-25T19:16:44.508Z rc=1

I managed to install it using npm install inside the container though.

bestlong commented 1 year ago

is nodejs version to old problem. try update docker image version to latest version, and recreate container

guilhermep commented 1 year ago

The dependency is requiring an older version than mine. It's usually not a problem, but Node-RED uses the --engine-strict flag.

guilhermep commented 1 year ago

Already fixed. https://github.com/southpolesteve/node-abort-controller/issues/39