2017-10-09 3 views
1
2017-10-08T20:06:11.093118+00:00 heroku[web.1]: Starting process with command `npm start` 
2017-10-08T20:06:15.431068+00:00 app[web.1]: 
2017-10-08T20:06:15.431083+00:00 app[web.1]: > [email protected] start /app 
2017-10-08T20:06:15.431084+00:00 app[web.1]: > concurrently "npm run server" "npm run client" 
2017-10-08T20:06:15.439379+00:00 app[web.1]: sh: 1: concurrently: not found 
2017-10-08T20:06:15.446591+00:00 app[web.1]: npm ERR! file sh 
2017-10-08T20:06:15.431085+00:00 app[web.1]: 
2017-10-08T20:06:15.447135+00:00 app[web.1]: npm ERR! errno ENOENT 
2017-10-08T20:06:15.447368+00:00 app[web.1]: npm ERR! syscall spawn 
2017-10-08T20:06:15.446893+00:00 app[web.1]: npm ERR! code ELIFECYCLE 
2017-10-08T20:06:15.453425+00:00 app[web.1]: npm ERR! 
2017-10-08T20:06:15.448865+00:00 app[web.1]: npm ERR! [email protected] start: `concurrently "npm run server" "npm run client"` 
2017-10-08T20:06:15.453636+00:00 app[web.1]: npm ERR! Failed at the [email protected] start script. 
2017-10-08T20:06:15.464269+00:00 app[web.1]: 
2017-10-08T20:06:15.453115+00:00 app[web.1]: npm ERR! spawn ENOENT 
2017-10-08T20:06:15.453824+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 
2017-10-08T20:06:15.469282+00:00 app[web.1]: npm ERR! A complete log of this run can be found in: 
2017-10-08T20:06:15.469426+00:00 app[web.1]: npm ERR!  /app/.npm/_logs/2017-10-08T20_06_15_456Z-debug.log 
2017-10-08T20:06:15.625015+00:00 heroku[web.1]: State changed from starting to crashed 
2017-10-08T20:06:15.627831+00:00 heroku[web.1]: State changed from crashed to starting 
2017-10-08T20:06:15.609086+00:00 heroku[web.1]: Process exited with status 1 
2017-10-08T20:06:20.543684+00:00 heroku[web.1]: Starting process with command `npm start` 
2017-10-08T20:06:23.048216+00:00 heroku[web.1]: Process exited with status 1 
2017-10-08T20:06:22.944636+00:00 app[web.1]: > [email protected] start /app 
2017-10-08T20:06:22.944621+00:00 app[web.1]: 
2017-10-08T20:06:22.944637+00:00 app[web.1]: > concurrently "npm run server" "npm run client" 
2017-10-08T20:06:22.944637+00:00 app[web.1]: 
2017-10-08T20:06:22.951908+00:00 app[web.1]: sh: 1: concurrently: not found 
2017-10-08T20:06:22.957587+00:00 app[web.1]: npm ERR! code ELIFECYCLE 
2017-10-08T20:06:22.957261+00:00 app[web.1]: npm ERR! file sh 
2017-10-08T20:06:22.957843+00:00 app[web.1]: npm ERR! errno ENOENT 
2017-10-08T20:06:22.959735+00:00 app[web.1]: npm ERR! spawn ENOENT 
2017-10-08T20:06:22.958098+00:00 app[web.1]: npm ERR! syscall spawn 
2017-10-08T20:06:22.959544+00:00 app[web.1]: npm ERR! [email protected] start: `concurrently "npm run server" "npm run client"` 
2017-10-08T20:06:22.960008+00:00 app[web.1]: npm ERR! 
2017-10-08T20:06:22.960225+00:00 app[web.1]: npm ERR! Failed at the [email protected] start script. 
2017-10-08T20:06:22.966218+00:00 app[web.1]: 
2017-10-08T20:06:22.966570+00:00 app[web.1]: npm ERR!  /app/.npm/_logs/2017-10-08T20_06_22_962Z-debug.log 
2017-10-08T20:06:22.960452+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 
2017-10-08T20:06:22.966432+00:00 app[web.1]: npm ERR! A complete log of this run can be found in: 
2017-10-08T20:06:23.060706+00:00 heroku[web.1]: State changed from starting to crashed 

Je peux exécuter l'application sur mon localhost mais il se bloque dans heroku. Il semble que je rencontre des problèmes avec le paquet concurrent lors du démarrage de l'application dans heroku. J'ai utilisé npm i -S concurrently mais il télécharge sous dépendances de dev. Y a-t-il un type de paramètre dans Heroku que j'ai besoin de changer pour utiliser simultanément?heroku journaux sh: 1: concurremment: pas trouvé

+0

vérifier si vous en utilisant les mêmes packages lorsque vous initialisez vos objets. vous pouvez initialiser un objet et ne pas avoir à l'utiliser même s'il n'est pas installé dans les dépendances. J'ai initialisé le noeud mailer ne l'utilisait pas et il n'était pas installé dans les dépendances et tout fonctionnait bien localement seulement. – zb22

Répondre

1
apt-get install nodejs-legacy 
npm install -g tsc 
npm install -g concurrently 
npm install -g typescript 

essayer cette commande