Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sh: 1: concurrent: not found while npm start

I am trying to setup angular2 on my local machine, I installed node and npm, after installing npm when I do 'npm start' I am getting below error

root@sameer-Vostro-2520:/home/sameer/angular2/angular-2-beta-boilerplate# npm start

> [email protected] start /home/sameer/angular2/angular-2-beta-boilerplate
> concurrent "npm run gulp" "npm run lite" 

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

npm ERR! not ok code 0

How can we fix this?

installed concurrent but again same error

[email protected] /root/.node/lib/node_modules/concurrently
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])



> [email protected] start /home/sameer/angular2/angular-2-beta-boilerplate
> concurrent "npm run gulp" "npm run lite" 

/usr/bin/env: node: No such file or directory
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
/usr/share/doc/nodejs/README.Debian

npm ERR! not ok code 0
like image 339
SameerShaik Avatar asked Jul 13 '16 05:07

SameerShaik


People also ask

How do I fix NPM run start error?

To solve the npm ERR! Missing script: "start" error, make sure to add a start command to the scripts object in your package. json file and open your shell or IDE in the root directory of your project before running the npm start command.

What is concurrently NPM package?

Concurrently is a Node package that allows you to run multiple scripts at the same time in Node. js. It's especially useful if you want to run your app's front-end and back-end from a single NPM command.

What is concurrently in Node JS?

Concurrency means that a program is able to run more than one task at a time — this is not to be confused with parallelism. During concurrency, different tasks with differing goals of the program can be performed at the same time, while in parallelism, different parts of the program execute one task.


1 Answers

This issue got fixed after installing nodejs-legacy

apt-get install nodejs-legacy
like image 171
SameerShaik Avatar answered Sep 27 '22 20:09

SameerShaik