node-red / linux-installers

Node-RED install scripts for various flavours of Linux
Apache License 2.0
94 stars 63 forks source link

NPM v8 has depreciated `--global` #30

Closed Steve-Mcl closed 2 years ago

Steve-Mcl commented 2 years ago

As reported here: https://discourse.nodered.org/t/node-red-3-0-0-beta-3-released/64027/10?u=steve-mcl

image

Possible workaround - the script could either suppress that message or test the NPM version and switch from --global to --location=global for NPM v8+

Steve-Mcl commented 2 years ago

Turns out NPM revered this... https://github.com/npm/cli/issues/4980#issuecomment-1145164050

closing issue