0

I'm trying to deploy an Angular 2 app on Ubuntu and I am getting this error when I run npm start

> 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
/usr/share/doc/nodejs/README.Debian

npm ERR! not ok code 0

not only this but i can't find documentation anywhere on how to deploy an angular 2 app with webpack, not even on Angular.io

The code I am trying to deploy can be found here: https://angular.io/docs/ts/latest/guide/webpack.html

Any Help is appreciated

Colum
  • 996
  • 2
  • 8
  • 23

1 Answers1

1

try this from this link of stackoverflow duplicate of this i think

sudo apt-get install nodejs-legacy
Community
  • 1
  • 1
rashfmnb
  • 9,959
  • 4
  • 33
  • 44