I am trying to setup angular-seed application.
I have installed nodejs with
sudo apt-get install nodejs
sudo apt-get install npm
sudo apt-get install bower -g
sudo apt-get install nodejs-legacy
> firstname.lastname@example.org prestart /home/venki/Downloads/angular-seed
> npm install
> email@example.com postinstall /home/venki/Downloads/angular-seed
> bower install
> firstname.lastname@example.org start /home/venki/Downloads/angular-seed
> http-server -a localhost -p 8000 -c-1
sh: 1: http-server: not found
npm ERR! weird error 127
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
I assumed that http-server will be installed by default by nodejs but it turns out that it doesn't.
I installed http-server using
sudo npm install -g http-server
Just ran npm start after this. That's it, the problem is solved.