sh:1:并发:在npm启动时找不到
我想在我的本地机器上设置angular2,我安装节点和npm,安装npm后,当我做'npm开始'我得到下面的错误
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
- AngularJS数据绑定不能与附加到DOM的`<div>`一起工作
- 仪表板中的多个模块列表 – Yeoman MEANJS Generator
- 无法从Node.js命令提示符运行量angular器
- 如何在Angular / Node.js / Express中将客户端parameter passing给服务器端
- 在IpadAir中使用appium进行testing时,不能启动量angular器脚本
- node.js express没有收到请求
- 在我的项目结构中,我应该在哪里pipe理服务器端的高级algorithm/服务?
- AngularJS:通过https与socket.io聊天
- Nodejs&Angularjs,清洁url