I'm trying to deploy an Angular 2 app on Ubuntu and I am getting this error when I run
> webpack-dev-server --inline --progress --port 8080
npm ERR! weird error 1
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
npm ERR! not ok code 0
try this from this link of stackoverflow duplicate of this i think
sudo apt-get install nodejs-legacy