sh:1:并发:在npm开始时找不到 [英] sh: 1: concurrent: not found while npm start
本文介绍了sh:1:并发:在npm开始时找不到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在我的本地机器上设置angular2,我安装了节点和npm,安装npm后我做'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
> angular2-boilerplate@1.0.0 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?
已安装并发但同样错误
concurrently@2.2.0 /root/.node/lib/node_modules/concurrently
├── commander@2.6.0
├── bluebird@2.9.6
├── cross-spawn@0.2.9 (lru-cache@2.7.3)
├── moment@2.14.1
├── rx@2.3.24
├── lodash@4.13.1
└── chalk@0.5.1 (supports-color@0.2.0, escape-string-regexp@1.0.5, ansi-styles@1.1.0, strip-ansi@0.3.0, has-ansi@0.1.0)
> angular2-boilerplate@1.0.0 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
推荐答案
安装nodejs后修复此问题-legacy
This issue got fixed after installing nodejs-legacy
apt-get install nodejs-legacy
这篇关于sh:1:并发:在npm开始时找不到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文