javascript - sh : 1: concurrent: not found while npm start

标签 javascript angularjs node.js npm npm-install

我正在尝试在我的本地机器上设置 angular2,我安装了 node 和 npm,在安装 npm 之后当我执行“npm start”时出现以下错误

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

我们如何解决这个问题?

同时安装但同样的错误

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 后得到解决

apt-get install nodejs-legacy

关于javascript - sh : 1: concurrent: not found while npm start,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38343657/

相关文章:

javascript - Angular ngRoute 不适用于 Express 4

javascript - 在 AngularJS 中的 Controller 之间共享数据

javascript - Controller 函数可以将数据绑定(bind)到元素的数据属性吗?

ruby-on-rails - 使用 Juggernaut 同步客户端计时器时处理延迟

javascript - 无法用 mongoose 返回 axios promise

javascript - 从具有相同域的多个 iFrame 访问 IndexedDB

javascript - 将 CSS 字符串作为新文档样式表注入(inject)

javascript - 如何处理引发警报框并显示AJAX错误消息的错误?

node.js - AWS DynamoDB node.js put请求不会将数据放入Dynamo表中

javascript - Canvas 清空但又重新出现