Javascript 无法启动npm
我正在处理nodejs项目,无法启动nodejs 有两个文件夹,一个是前端,另一个是后端 我们把所有前端代码放在前端。 我们启动Javascript 无法启动npm,javascript,node.js,gruntjs,monodevelop,mean-stack,Javascript,Node.js,Gruntjs,Monodevelop,Mean Stack,我正在处理nodejs项目,无法启动nodejs 有两个文件夹,一个是前端,另一个是后端 我们把所有前端代码放在前端。 我们启动grunt start命令,使前端工作正常 Bunpm启动不工作 kailas.kokate@kailaskokate-desktop:~/kol-backend$ npm start > Stack@0.0.0 prestart /home/kailas.kokate/kol-backend > npm install Stack@0.0.0 /home/kail
grunt start
命令,使前端工作正常
Bunpm启动
不工作
kailas.kokate@kailaskokate-desktop:~/kol-backend$ npm start
> Stack@0.0.0 prestart /home/kailas.kokate/kol-backend
> npm install
Stack@0.0.0 /home/kailas.kokate/kol-backend
+-- aws-sdk@2.2.33
`-- multer-storage-s3@1.1.1 extraneous
> Stack@0.0.0 start /home/kailas.kokate/kol-backend
> nodemon ./bin/www
1 Mar 11:04:54 - [nodemon] v1.3.7
1 Mar 11:04:54 - [nodemon] to restart at any time, enter `rs`
1 Mar 11:04:54 - [nodemon] watching: *.*
1 Mar 11:04:54 - [nodemon] starting `node ./bin/www`
104.196.20.83:9200
events.js:410
EventEmitter.listenerCount = function(emitter, type) {
^
RangeError: Maximum call stack size exceeded
at Function.EventEmitter.listenerCount (events.js:410:38)
at Log.listenerCount (/home/kailas.kokate/kol-backend/node_modules/elasticsearch/src/lib/log.js:68:25)
at Function.EventEmitter.listenerCount (events.js:412:20)
at Log.listenerCount (/home/kailas.kokate/kol-backend/node_modules/elasticsearch/src/lib/log.js:68:25)
at Function.EventEmitter.listenerCount (events.js:412:20)
at Log.listenerCount (/home/kailas.kokate/kol-backend/node_modules/elasticsearch/src/lib/log.js:68:25)
at Function.EventEmitter.listenerCount (events.js:412:20)
at Log.listenerCount (/home/kailas.kokate/kol-backend/node_modules/elasticsearch/src/lib/log.js:68:25)
at Function.EventEmitter.listenerCount (events.js:412:20)
at Log.listenerCount (/home/kailas.kokate/kol-backend/node_modules/elasticsearch/src/lib/log.js:68:25)
at Function.EventEmitter.listenerCount (events.js:412:20)
at Log.listenerCount (/home/kailas.kokate/kol-backend/node_modules/elasticsearch/src/lib/log.js:68:25)
at Function.EventEmitter.listenerCount (events.js:412:20)
at Log.listenerCount (/home/kailas.kokate/kol-backend/node_modules/elasticsearch/src/lib/log.js:68:25)
at Function.EventEmitter.listenerCount (events.js:412:20)
at Log.listenerCount (/home/kailas.kokate/kol-backend/node_modules/elasticsearch/src/lib/log.js:68:25)
at Function.EventEmitter.listenerCount (events.js:412:20)
at Log.listenerCount (/home/kailas.kokate/kol-backend/node_modules/elasticsearch/src/lib/log.js:68:25)
at Function.EventEmitter.listenerCount (events.js:412:20)
at Log.listenerCount (/home/kailas.kokate/kol-backend/node_modules/elasticsearch/src/lib/log.js:68:25)
at Function.EventEmitter.listenerCount (events.js:412:20)
at Log.listenerCount (/home/kailas.kokate/kol-backend/node_modules/elasticsearch/src/lib/log.js:68:25)
at Function.EventEmitter.listenerCount (events.js:412:20)
at Log.listenerCount (/home/kailas.kokate/kol-backend/node_modules/elasticsearch/src/lib/log.js:68:25)
at Function.EventEmitter.listenerCount (events.js:412:20)
at Log.listenerCount (/home/kailas.kokate/kol-backend/node_modules/elasticsearch/src/lib/log.js:68:25)
at Function.EventEmitter.listenerCount (events.js:412:20)
at Log.listenerCount (/home/kailas.kokate/kol-backend/node_modules/elasticsearch/src/lib/log.js:68:25)
1 Mar 11:04:55 - [nodemon] app crashed - waiting for file changes before starting...
凯拉斯。kokate@kailaskokate-桌面:~/kol后端$npm开始
> Stack@0.0.0prestart/home/kailas.kokate/kol-backend
>npm安装
Stack@0.0.0/home/kailas.kokate/kol-backend
+--自动气象站-sdk@2.2.33
`--多路存储-s3@1.1.1无关的
> Stack@0.0.0start/home/kailas.kokate/kol-backend
>nodemon./bin/www
3月1日11:04:54-[nodemon]v1.3.7
3月1日11:04:54-[nodemon]要随时重新启动,请输入'rs'`
3月1日11:04:54-[nodemon]观看:**
3月1日11:04:54-[nodemon]正在启动'node./bin/www`
104.196.20.83:9200
events.js:410
EventEmitter.listenerCount=函数(发射器,类型){
^
RangeError:超出了最大调用堆栈大小
在Function.EventEmitter.listenerCount(events.js:410:38)
在Log.listenerCount(/home/kailas.kokate/kol backend/node_modules/elasticsearch/src/lib/Log.js:68:25)
在Function.EventEmitter.listenerCount(events.js:412:20)
在Log.listenerCount(/home/kailas.kokate/kol backend/node_modules/elasticsearch/src/lib/Log.js:68:25)
在Function.EventEmitter.listenerCount(events.js:412:20)
在Log.listenerCount(/home/kailas.kokate/kol backend/node_modules/elasticsearch/src/lib/Log.js:68:25)
在Function.EventEmitter.listenerCount(events.js:412:20)
在Log.listenerCount(/home/kailas.kokate/kol backend/node_modules/elasticsearch/src/lib/Log.js:68:25)
在Function.EventEmitter.listenerCount(events.js:412:20)
在Log.listenerCount(/home/kailas.kokate/kol backend/node_modules/elasticsearch/src/lib/Log.js:68:25)
在Function.EventEmitter.listenerCount(events.js:412:20)
在Log.listenerCount(/home/kailas.kokate/kol backend/node_modules/elasticsearch/src/lib/Log.js:68:25)
在Function.EventEmitter.listenerCount(events.js:412:20)
在Log.listenerCount(/home/kailas.kokate/kol backend/node_modules/elasticsearch/src/lib/Log.js:68:25)
在Function.EventEmitter.listenerCount(events.js:412:20)
在Log.listenerCount(/home/kailas.kokate/kol backend/node_modules/elasticsearch/src/lib/Log.js:68:25)
在Function.EventEmitter.listenerCount(events.js:412:20)
在Log.listenerCount(/home/kailas.kokate/kol backend/node_modules/elasticsearch/src/lib/Log.js:68:25)
在Function.EventEmitter.listenerCount(events.js:412:20)
在Log.listenerCount(/home/kailas.kokate/kol backend/node_modules/elasticsearch/src/lib/Log.js:68:25)
在Function.EventEmitter.listenerCount(events.js:412:20)
在Log.listenerCount(/home/kailas.kokate/kol backend/node_modules/elasticsearch/src/lib/Log.js:68:25)
在Function.EventEmitter.listenerCount(events.js:412:20)
在Log.listenerCount(/home/kailas.kokate/kol backend/node_modules/elasticsearch/src/lib/Log.js:68:25)
在Function.EventEmitter.listenerCount(events.js:412:20)
在Log.listenerCount(/home/kailas.kokate/kol backend/node_modules/elasticsearch/src/lib/Log.js:68:25)
在Function.EventEmitter.listenerCount(events.js:412:20)
在Log.listenerCount(/home/kailas.kokate/kol backend/node_modules/elasticsearch/src/lib/Log.js:68:25)
3月1日11:04:55-[nodemon]应用程序崩溃-在启动之前等待文件更改。。。
当您从nodejs项目的根目录发出命令npm start时,node将在package.json文件中查找脚本对象。如果找到,它将查找带有start键的脚本,并运行指定为其值的命令。对于
脚本,您的package.json
说什么?它有任何启动脚本吗已安装?可能与