It seems that you used node instead of uglify on the command line. Since uglifyjs is a native CLI, you do not need to call node. I believe that you need this to be installed globally for the intended purpose.
npm install uglify-js -g
then
uglifyjs "path\to\uglifyjs\bin\uglifyjs" -o "file.min.js" "file.js"
must work.
source share