StephenGrider / FullstackReactCode

Companion repo to https://www.udemy.com/node-with-react-fullstack-web-development
1.39k stars 1.17k forks source link

Heroku Application Error #92

Closed julianf17 closed 3 years ago

julianf17 commented 3 years ago

`Last login: Tue Apr 27 18:17:02 on ttys002

The default interactive shell is now zsh. To update your account to use zsh, please run chsh -s /bin/zsh. For more details, please visit https://support.apple.com/kb/HT208050. (base) julians-air-2:server julianforbes$ git add . (base) julians-air-2:server julianforbes$ git commit -m "initial commit" On branch master nothing to commit, working tree clean (base) julians-air-2:server julianforbes$ git init Reinitialized existing Git repository in /Users/julianforbes/server/.git/ (base) julians-air-2:server julianforbes$ git add . (base) julians-air-2:server julianforbes$ git commit -m "initial commit" On branch master nothing to commit, working tree clean (base) julians-air-2:server julianforbes$ cd server -bash: cd: server: No such file or directory (base) julians-air-2:server julianforbes$ brew install heroku -bash: brew: command not found (base) julians-air-2:server julianforbes$ brew tap heroku/brew && brew install heroku -bash: brew: command not found (base) julians-air-2:server julianforbes$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ==> Checking for sudo access (which may request your password). Password: Sorry, try again. Password: ==> This script will install: /usr/local/bin/brew /usr/local/share/doc/homebrew /usr/local/share/man/man1/brew.1 /usr/local/share/zsh/site-functions/_brew /usr/local/etc/bash_completion.d/brew /usr/local/Homebrew ==> The following existing directories will be made group writable: /usr/local/bin /usr/local/include /usr/local/lib /usr/local/share /usr/local/share/doc /usr/local/share/man /usr/local/share/man/man1 ==> The following existing directories will have their owner set to julianforbes: /usr/local/bin /usr/local/include /usr/local/lib /usr/local/share /usr/local/share/doc /usr/local/share/man /usr/local/share/man/man1 ==> The following existing directories will have their group set to admin: /usr/local/bin /usr/local/include /usr/local/lib /usr/local/share /usr/local/share/doc /usr/local/share/man /usr/local/share/man/man1 ==> The following new directories will be created: /usr/local/etc /usr/local/sbin /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Frameworks

Press RETURN to continue or any other key to abort ==> /usr/bin/sudo /bin/chmod u+rwx /usr/local/bin /usr/local/include /usr/local/lib /usr/local/share /usr/local/share/doc /usr/local/share/man /usr/local/share/man/man1 ==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/bin /usr/local/include /usr/local/lib /usr/local/share /usr/local/share/doc /usr/local/share/man /usr/local/share/man/man1 ==> /usr/bin/sudo /usr/sbin/chown julianforbes /usr/local/bin /usr/local/include /usr/local/lib /usr/local/share /usr/local/share/doc /usr/local/share/man /usr/local/share/man/man1 ==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/bin /usr/local/include /usr/local/lib /usr/local/share /usr/local/share/doc /usr/local/share/man /usr/local/share/man/man1 ==> /usr/bin/sudo /bin/mkdir -p /usr/local/etc /usr/local/sbin /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Frameworks ==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/etc /usr/local/sbin /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Frameworks ==> /usr/bin/sudo /usr/sbin/chown julianforbes /usr/local/etc /usr/local/sbin /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Frameworks ==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/etc /usr/local/sbin /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Frameworks ==> /usr/bin/sudo /bin/mkdir -p /usr/local/Homebrew ==> /usr/bin/sudo /usr/sbin/chown -R julianforbes:admin /usr/local/Homebrew ==> /usr/bin/sudo /bin/mkdir -p /Users/julianforbes/Library/Caches/Homebrew ==> /usr/bin/sudo /bin/chmod g+rwx /Users/julianforbes/Library/Caches/Homebrew ==> /usr/bin/sudo /usr/sbin/chown -R julianforbes /Users/julianforbes/Library/Caches/Homebrew

==> Downloading and installing Homebrew... remote: Enumerating objects: 181313, done. remote: Counting objects: 100% (50/50), done. remote: Compressing objects: 100% (50/50), done. remote: Total 181313 (delta 0), reused 46 (delta 0), pack-reused 181263 Receiving objects: 100% (181313/181313), 48.00 MiB | 18.36 MiB/s, done. Resolving deltas: 100% (134521/134521), done. From https://github.com/Homebrew/brew

brew tap heroku/brew && brew install heroku

From https://github.com/Homebrew/homebrew-core

==> Homebrew has enabled anonymous aggregate formulae and cask analytics. Read the analytics documentation (and how to opt-out) here: https://docs.brew.sh/Analytics No analytics data has been sent yet (or will be during this install run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating: https://github.com/Homebrew/brew#donations

==> Next steps:

npm ERR! A complete log of this run can be found in: npm ERR! /Users/julianforbes/.npm/_logs/2021-04-27T23_28_57_459Z-debug.log (base) julians-air-2:server julianforbes$ npm install -g npm@7.11.1 npm ERR! code EACCES npm ERR! syscall rename npm ERR! path /usr/local/lib/node_modules/npm npm ERR! dest /usr/local/lib/node_modules/.npm-i9nnxROI npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, rename '/usr/local/lib/node_modules/npm' -> '/usr/local/lib/node_modules/.npm-i9nnxROI' npm ERR! [Error: EACCES: permission denied, rename '/usr/local/lib/node_modules/npm' -> '/usr/local/lib/node_modules/.npm-i9nnxROI'] { npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'rename', npm ERR! path: '/usr/local/lib/node_modules/npm', npm ERR! dest: '/usr/local/lib/node_modules/.npm-i9nnxROI' npm ERR! } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/julianforbes/.npm/_logs/2021-04-27T23_29_21_957Z-debug.log (base) julians-air-2:server julianforbes$ git add . (base) julians-air-2:server julianforbes$ git commit -m "heroku deploy" On branch master nothing to commit, working tree clean (base) julians-air-2:server julianforbes$ git push heroku master Everything up-to-date (base) julians-air-2:server julianforbes$ git add . (base) julians-air-2:server julianforbes$ git commit -m "heroku deploy" On branch master nothing to commit, working tree clean (base) julians-air-2:server julianforbes$ git push heroku master Everything up-to-date (base) julians-air-2:server julianforbes$ heroku open (base) julians-air-2:server julianforbes$ heroku logs --tail 2021-05-13T14:52:09.432874+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=pure-sierra-13928.herokuapp.com request_id=cab410d5-436a-4d61-b582-b27f31dbe058 fwd="68.192.120.167" dyno= connect= service= status=503 bytes= protocol=https 2021-05-13T14:52:10.075565+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=pure-sierra-13928.herokuapp.com request_id=69d69513-4fab-41a8-a5ec-9a5980465737 fwd="68.192.120.167" dyno= connect= service= status=503 bytes= protocol=https git push heroku main

`@Bobby Not sure what the errors mean after typing heroku logs -- tail