Giter Club home page Giter Club logo

mern_shopping_list's Introduction

MERN Shopping List

Shopping list app built with the MERN stack along with Redux for state management, Reactstrap and react-transition-group.

Quick Start

Add your MONGO_URI to the default.json file. Make sure you set an env var for that and the jwtSecret on deployment

# Install dependencies for server
npm install

# Install dependencies for client
npm run client-install

# Run the client & server with concurrently
npm run dev

# Run the Express server only
npm run server

# Run the React client only
npm run client

# Server runs on http://localhost:5000 and client on http://localhost:3000

Deployment

There is a Heroku post build script so that you do not have to compile your React frontend manually, it is done on the server. Simply push to Heroku and it will build and load the client index.html page

App Info

Author

Brad Traversy Traversy Media

Version

1.0.0

License

This project is licensed under the MIT License

mern_shopping_list's People

Contributors

bradtraversy avatar dafrito avatar dependabot[bot] avatar enun03 avatar j-mcgregor avatar michael-s-molina avatar saurabhlearns avatar sphred5 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mern_shopping_list's Issues

issue with proxy

Hello everyone,
I have an issue with proxy

] [HPM] Error occurred while trying to proxy request /api/items from localhost:3000 to http://localhost:5000 (ECONNRESET) (https://nodejs.org/api/errors.html#errors_common_system_errors)

I can't add any item to my list, please help!

id can not be taken by errReducer

In errReducer case GET_ERRORS cant not take id from

  return {
        msj: action.payload.msj,
        status: action.payload.status,
        id: action.payload.id,
      };

MERN app not deploying

remote:
remote: npm ERR! path /tmp/build_a2b0989d0628d585076d5a80c56e4015/client/package.json
remote: npm ERR! code ENOENT
remote: npm ERR! errno -2
remote: npm ERR! syscall open
remote: npm ERR! enoent ENOENT: no such file or directory, open '/tmp/build_a2b0989d0628d585076d5a80c56e4015/client/package.json'
remote: npm ERR! enoent This is related to npm not being able to find a file.
remote: npm ERR! enoent
remote:
remote: npm ERR! A complete log of this run can be found in:
remote: npm ERR! /tmp/npmcache.nze42/_logs/2019-05-22T19_03_10_366Z-debug.log
remote: npm ERR! code ELIFECYCLE
remote: npm ERR! errno 254
remote: npm ERR! [email protected] heroku-postbuild: NPM_CONFIG_PRODUCTION=false npm install --prefix-client && npm run build --prefix client
remote: npm ERR! Exit status 254
remote: npm ERR!
remote: npm ERR! Failed at the [email protected] heroku-postbuild script.
remote: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
remote:
remote: npm ERR! A complete log of this run can be found in:
remote: npm ERR! /tmp/npmcache.nze42/_logs/2019-05-22T19_03_10_380Z-debug.log
remote:
remote: -----> Build failed
remote:
remote: We're sorry this build is failing! You can troubleshoot common issues here:
remote: https://devcenter.heroku.com/articles/troubleshooting-node-deploys
remote:
remote: Some possible problems:
remote:
remote: - Node version not specified in package.json
remote: https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
remote:
remote: Love,
remote: Heroku
remote:
remote: ! Push rejected, failed to compile Node.js app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to nameless-plains-35513.
remote:
To https://git.heroku.com/nameless-plains-35513.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/nameless-plains-35513.git'

Application error after deploying successfully

heroku logs --tail
2019-07-25T02:55:06.000000+00:00 app[api]: Build succeeded
2019-07-25T02:55:16.913162+00:00 heroku[web.1]: Starting process with command npm start
2019-07-25T02:55:19.977235+00:00 heroku[web.1]: State changed from starting to crashed
2019-07-25T02:55:19.990612+00:00 heroku[web.1]: State changed from crashed to starting
2019-07-25T02:55:19.804585+00:00 app[web.1]:
2019-07-25T02:55:19.804608+00:00 app[web.1]: > [email protected] start /app
2019-07-25T02:55:19.804610+00:00 app[web.1]: > server.js
2019-07-25T02:55:19.804611+00:00 app[web.1]:
2019-07-25T02:55:19.813734+00:00 app[web.1]: sh: 1: server.js: not found
2019-07-25T02:55:19.819664+00:00 app[web.1]: npm ERR! file sh
2019-07-25T02:55:19.820012+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2019-07-25T02:55:19.820288+00:00 app[web.1]: npm ERR! errno ENOENT
2019-07-25T02:55:19.820532+00:00 app[web.1]: npm ERR! syscall spawn
2019-07-25T02:55:19.822058+00:00 app[web.1]: npm ERR! [email protected] start: server.js
2019-07-25T02:55:19.822244+00:00 app[web.1]: npm ERR! spawn ENOENT
2019-07-25T02:55:19.822482+00:00 app[web.1]: npm ERR!
2019-07-25T02:55:19.822660+00:00 app[web.1]: npm ERR! Failed at the [email protected] start script.
2019-07-25T02:55:19.822857+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2019-07-25T02:55:19.834828+00:00 app[web.1]:
2019-07-25T02:55:19.835052+00:00 app[web.1]: npm ERR! A complete log of this run
can be found in:
2019-07-25T02:55:19.837652+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2019-07-25T02_55_19_824Z-debug.log
2019-07-25T02:55:19.956624+00:00 heroku[web.1]: Process exited with status 1
2019-07-25T02:55:29.592888+00:00 heroku[web.1]: Starting process with command npm start
2019-07-25T02:55:32.533679+00:00 heroku[web.1]: State changed from starting to crashed
2019-07-25T02:55:32.513740+00:00 heroku[web.1]: Process exited with status 1
2019-07-25T02:55:32.403818+00:00 app[web.1]:
2019-07-25T02:55:32.403843+00:00 app[web.1]: > [email protected] start /app
2019-07-25T02:55:32.403846+00:00 app[web.1]: > server.js
2019-07-25T02:55:32.403847+00:00 app[web.1]:
2019-07-25T02:55:32.417052+00:00 app[web.1]: sh: 1: server.js: not found
2019-07-25T02:55:32.439267+00:00 app[web.1]: npm ERR! file sh
2019-07-25T02:55:32.439518+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2019-07-25T02:55:32.439706+00:00 app[web.1]: npm ERR! errno ENOENT
2019-07-25T02:55:32.439891+00:00 app[web.1]: npm ERR! syscall spawn
2019-07-25T02:55:32.441150+00:00 app[web.1]: npm ERR! [email protected] start: server.js
2019-07-25T02:55:32.441289+00:00 app[web.1]: npm ERR! spawn ENOENT
2019-07-25T02:55:32.441466+00:00 app[web.1]: npm ERR!
2019-07-25T02:55:32.441601+00:00 app[web.1]: npm ERR! Failed at the [email protected] start script.
2019-07-25T02:55:32.441747+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2019-07-25T02:55:32.451180+00:00 app[web.1]:
2019-07-25T02:55:32.451313+00:00 app[web.1]: npm ERR! A complete log of this run
can be found in:
2019-07-25T02:55:32.451380+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2019-07-25T02_55_32_443Z-debug.log
2019-07-25T02:55:33.386189+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=iremember-v1.herokuapp.com request_id=c64028b2-c25d-459d-8830-a356aebaaa9c fwd="157.42.123.187" dyno= connect= service= status=503 bytes= protocol=https
2019-07-25T02:55:34.160617+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=iremember-v1.herokuapp.com request_id=d756329d-ae44-453b-8b28-40b814bdf186 fwd="157.42.123.187" dyno= connect= service= status=503 bytes= protocol=https

heroku post build failed.

remote: -----> Build
remote: Running heroku-postbuild
remote:
remote: > [email protected] heroku-postbuild /tmp/build_d4173c10eae1c1ceaf8c889b305d0e54
remote: > NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client
remote:
remote: up to date in 0.258s
remote: found 0 vulnerabilities
remote:
remote: npm ERR! code ENOENT
remote: npm ERR! syscall open
remote: npm ERR! path /tmp/build_d4173c10eae1c1ceaf8c889b305d0e54/client/package.json
remote: npm ERR! errno -2
remote: npm ERR! enoent ENOENT: no such file or directory, open '/tmp/build_d4173c10eae1c1ceaf8c889b305d0e54/client/package.json'
remote: npm ERR! enoent This is related to npm not being able to find a file.
remote: npm ERR! enoent
remote:
remote: npm ERR! A complete log of this run can be found in:
remote: npm ERR! /tmp/npmcache.2ILfy/_logs/2020-05-12T10_46_17_010Z-debug.log
remote: npm ERR! code ELIFECYCLE
remote: npm ERR! errno 254
remote: npm ERR! [email protected] heroku-postbuild: NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client
remote: npm ERR! Exit status 254
remote: npm ERR!
remote: npm ERR! Failed at the [email protected] heroku-postbuild script.
remote: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
remote:
remote: npm ERR! A complete log of this run can be found in:
remote: npm ERR! /tmp/npmcache.2ILfy/_logs/2020-05-12T10_46_17_024Z-debug.log
remote:
remote: -----> Build failed
remote:
remote: We're sorry this build is failing! You can troubleshoot common issues here:
remote: https://devcenter.heroku.com/articles/troubleshooting-node-deploys
remote:
remote: If you're stuck, please submit a ticket so we can help:
remote: https://help.heroku.com/
remote:
remote: Love,
remote: Heroku
remote:
remote: ! Push rejected, failed to compile Node.js app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to safe-everglades-73074.
remote:
To https://git.heroku.com/safe-everglades-73074.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/safe-everglades-73074.git'

HEROKU ERROR --- Error [MongooseError]: The `uri` parameter to `openUri()` must be a string, got "undefined".

Getting this error on the Heroku logs:

Error [MongooseError]: The uri parameter to openUri() must be a string, got "undefined". Make sure the first parameter to mongoose.connect() or mongoose.createConnection() is a string.
2020-01-26T01:33:51.682367+00:00 app[web.1]: at new MongooseError (/app/node_modules/mongoose/lib/error/mongooseError.js:10:11)
2020-01-26T01:33:51.682370+00:00 app[web.1]: at NativeConnection.Connection.openUri (/app/node_modules/mongoose/lib/connection.js:543:11)
2020-01-26T01:33:51.682373+00:00 app[web.1]: at Mongoose.connect (/app/node_modules/mongoose/lib/index.js:332:15)
2020-01-26T01:33:51.682379+00:00 app[web.1]: at Object. (/app/server.js:19:6)
2020-01-26T01:33:51.682381+00:00 app[web.1]: at Module._compile (internal/modules/cjs/loader.js:955:30)
2020-01-26T01:33:51.682383+00:00 app[web.1]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
2020-01-26T01:33:51.682385+00:00 app[web.1]: at Module.load (internal/modules/cjs/loader.js:811:32)
2020-01-26T01:33:51.682387+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:723:14)
2020-01-26T01:33:51.682389+00:00 app[web.1]: at Function.Module.runMain (internal/modules/cjs/loader.js:1043:10)
2020-01-26T01:33:51.682390+00:00 app[web.1]: at internal/main/run_main_module.js:17:11 {
2020-01-26T01:33:51.682393+00:00 app[web.1]: message: 'The uri parameter to openUri() must be a string, got "undefined". Make sure the first parameter to mongoose.connect() or mongoose.createConnection() is a string.',
2020-01-26T01:33:51.682396+00:00 app[web.1]: name: 'MongooseError'
2020-01-26T01:33:51.682398+00:00 app[web.1]: }
2020-01-26T01:33:51.696226+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2020-01-26T01:33:51.696758+00:00 app[web.1]: npm ERR! errno 1
2020-01-26T01:33:51.698891+00:00 app[web.1]: npm ERR! [email protected] start: node server.js
2020-01-26T01:33:51.699327+00:00 app[web.1]: npm ERR! Exit status 1
2020-01-26T01:33:51.699717+00:00 app[web.1]: npm ERR!
2020-01-26T01:33:51.700059+00:00 app[web.1]: npm ERR! Failed at the [email protected] start script.
2020-01-26T01:33:51.700404+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2020-01-26T01:33:51.709040+00:00 app[web.1]:
2020-01-26T01:33:51.709588+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2020-01-26T01:33:51.709906+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2020-01-26T01_33_51_701Z-debug.log

Anyone have this issue?

I have a prpblem is no such file or directory, open '/tmp/build_d5f577.../client/package.json'

-----> Node.js app detected

-----> Creating runtime environment

   NPM_CONFIG_LOGLEVEL=error
   NODE_ENV=production
   NODE_MODULES_CACHE=true
   NODE_VERBOSE=false

-----> Installing binaries
engines.node (package.json): 10.16.0
engines.npm (package.json): 6.9.0

   Resolving node version 10.16.0...
   Downloading and installing node 10.16.0...
   npm 6.9.0 already installed with node

-----> Installing dependencies
Prebuild detected (node_modules already exists)
Rebuilding any native modules

   > [email protected] postinstall /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/nodemon
   > node bin/postinstall || exit 0
   
   Love nodemon? You can now support the project via the open collective:
    > https://opencollective.com/nodemon/donate
   
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/bcryptjs
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/body-parser
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/bytes
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/content-type
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/debug
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/ms
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/depd
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/http-errors
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/inherits
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/setprototypeof
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/statuses
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/toidentifier
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/iconv-lite
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/safer-buffer
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/on-finished
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/ee-first
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/qs
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/raw-body
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/unpipe
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/type-is
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/media-typer
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/mime-types
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/mime-db
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/concurrently
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/chalk
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/ansi-styles
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/color-convert
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/color-name
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/escape-string-regexp
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/supports-color
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/has-flag
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/date-fns
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/lodash
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/read-pkg
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/normalize-package-data
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/hosted-git-info
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/resolve
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/path-parse
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/semver
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/validate-npm-package-license
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/spdx-correct
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/spdx-expression-parse
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/spdx-exceptions
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/spdx-license-ids
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/parse-json
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/error-ex
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/is-arrayish
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/json-parse-better-errors
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/pify
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/rxjs
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/tslib
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/spawn-command
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/concurrently/node_modules/supports-color
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/concurrently/node_modules/has-flag
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/tree-kill
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/yargs
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/cliui
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/string-width
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/is-fullwidth-code-point
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/strip-ansi
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/ansi-regex
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/wrap-ansi
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/wrap-ansi/node_modules/string-width
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/code-point-at
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/number-is-nan
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/wrap-ansi/node_modules/strip-ansi
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/wrap-ansi/node_modules/ansi-regex
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/decamelize
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/find-up
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/locate-path
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/p-locate
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/p-limit
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/p-try
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/path-exists
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/get-caller-file
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/os-locale
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/os-locale/node_modules/execa
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/os-locale/node_modules/cross-spawn
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/nice-try
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/path-key
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/shebang-command
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/shebang-regex
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/which
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/isexe
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/os-locale/node_modules/get-stream
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/pump
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/end-of-stream
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/once
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/wrappy
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/is-stream
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/npm-run-path
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/p-finally
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/signal-exit
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/strip-eof
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/lcid
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/invert-kv
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/mem
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/map-age-cleaner
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/p-defer
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/mimic-fn
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/p-is-promise
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/require-directory
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/require-main-filename
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/set-blocking
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/which-module
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/y18n
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/yargs-parser
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/yargs-parser/node_modules/camelcase
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/express
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/accepts
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/negotiator
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/array-flatten
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/content-disposition
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/safe-buffer
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/cookie
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/cookie-signature
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/encodeurl
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/escape-html
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/etag
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/finalhandler
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/parseurl
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/fresh
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/merge-descriptors
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/methods
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/path-to-regexp
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/proxy-addr
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/forwarded
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/ipaddr.js
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/range-parser
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/send
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/destroy
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/mime
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/send/node_modules/ms
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/serve-static
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/utils-merge
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/vary
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/jsonwebtoken
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/jws
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/jwa
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/buffer-equal-constant-time
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/ecdsa-sig-formatter
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/lodash.includes
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/lodash.isboolean
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/lodash.isinteger
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/lodash.isnumber
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/lodash.isplainobject
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/lodash.isstring
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/lodash.once
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/jsonwebtoken/node_modules/ms
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/mongoose
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/async
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/bson
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/kareem
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/mongodb
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/mongodb-core
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/require_optional
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/resolve-from
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/mongoose-legacy-pluralize
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/mpath
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/mquery
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/bluebird
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/mquery/node_modules/debug
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/regexp-clone
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/sliced
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/mongoose/node_modules/ms
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/sift
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/path
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/process
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/util
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/copy-descriptor
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/get-value
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/path-is-inside
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/pstree.remy
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/abbrev
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/ansi-align
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/arr-diff
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/arr-flatten
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/arr-union
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/array-unique
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/assign-symbols
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/async-each
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/balanced-match
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/binary-extensions
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/boxen
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/camelcase
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/cli-boxes
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/term-size
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/execa
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/cross-spawn
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/lru-cache
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/pseudomap
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/yallist
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/get-stream
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/widest-line
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/brace-expansion
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/concat-map
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/cache-base
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/collection-visit
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/map-visit
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/object-visit
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/isobject
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/component-emitter
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/has-value
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/has-values
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/is-number
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/is-number/node_modules/kind-of
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/is-buffer
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/has-values/node_modules/kind-of
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/set-value
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/set-value/node_modules/extend-shallow
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/is-extendable
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/is-plain-object
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/split-string
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/extend-shallow
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/extend-shallow/node_modules/is-extendable
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/to-object-path
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/to-object-path/node_modules/kind-of
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/union-value
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/union-value/node_modules/set-value
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/union-value/node_modules/extend-shallow
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/unset-value
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/unset-value/node_modules/has-value
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/unset-value/node_modules/has-values
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/unset-value/node_modules/has-value/node_modules/isobject
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/isarray
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/capture-stack-trace
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/ci-info
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/configstore
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/dot-prop
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/is-obj
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/graceful-fs
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/make-dir
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/unique-string
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/crypto-random-string
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/write-file-atomic
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/imurmurhash
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/xdg-basedir
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/core-util-is
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/create-error-class
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/decode-uri-component
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/deep-extend
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/duplexer3
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/for-in
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/fragment-cache
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/map-cache
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/global-dirs
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/ini
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/ignore-by-default
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/import-lazy
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/is-binary-path
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/is-extglob
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/is-glob
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/is-installed-globally
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/is-path-inside
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/is-npm
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/is-redirect
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/is-retry-allowed
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/is-windows
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/latest-version
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/package-json
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/got
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/lowercase-keys
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/timed-out
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/unzip-response
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/url-parse-lax
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/prepend-http
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/registry-auth-token
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/rc
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/minimist
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/strip-json-comments
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/registry-url
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/memory-pager
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/minimatch
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/normalize-path
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/object.pick
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/pascalcase
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/path-dirname
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/path-is-absolute
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/posix-character-classes
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/process-nextick-args
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/readable-stream
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/string_decoder
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/util-deprecate
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/readdirp
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/micromatch
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/braces
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/braces/node_modules/extend-shallow
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/fill-range
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/fill-range/node_modules/extend-shallow
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/repeat-string
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/to-regex-range
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/repeat-element
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/snapdragon
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/base
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/class-utils
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/class-utils/node_modules/define-property
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/is-descriptor
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/is-accessor-descriptor
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/is-accessor-descriptor/node_modules/kind-of
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/is-data-descriptor
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/is-data-descriptor/node_modules/kind-of
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/is-descriptor/node_modules/kind-of
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/static-extend
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/static-extend/node_modules/define-property
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/object-copy
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/object-copy/node_modules/define-property
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/object-copy/node_modules/kind-of
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/base/node_modules/define-property
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/base/node_modules/is-descriptor
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/base/node_modules/is-accessor-descriptor
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/kind-of
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/base/node_modules/is-data-descriptor
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/mixin-deep
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/mixin-deep/node_modules/is-extendable
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/snapdragon/node_modules/define-property
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/snapdragon/node_modules/extend-shallow
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/source-map
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/source-map-resolve
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/atob
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/resolve-url
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/source-map-url
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/urix
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/use
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/snapdragon-node
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/snapdragon-node/node_modules/define-property
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/snapdragon-node/node_modules/is-descriptor
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/snapdragon-node/node_modules/is-accessor-descriptor
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/snapdragon-node/node_modules/is-data-descriptor
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/snapdragon-util
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/snapdragon-util/node_modules/kind-of
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/to-regex
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/define-property
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/define-property/node_modules/is-descriptor
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/define-property/node_modules/is-accessor-descriptor
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/define-property/node_modules/is-data-descriptor
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/regex-not
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/safe-regex
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/ret
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/extglob
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/extglob/node_modules/define-property
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/extglob/node_modules/is-descriptor
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/extglob/node_modules/is-accessor-descriptor
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/extglob/node_modules/is-data-descriptor
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/expand-brackets
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/expand-brackets/node_modules/define-property
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/expand-brackets/node_modules/extend-shallow
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/extglob/node_modules/extend-shallow
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/nanomatch
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/remove-trailing-separator
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/saslprep
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/sparse-bitfield
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/semver-diff
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/undefsafe
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/update-notifier
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/is-ci
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/chokidar
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/anymatch
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/anymatch/node_modules/normalize-path
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/glob-parent
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/glob-parent/node_modules/is-glob
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/upath
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/nopt
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/touch
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/nodemon
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/nodemon/node_modules/debug
   [email protected] /tmp/build_d5f57799a293d321f3d375081db0698d/node_modules/nodemon/node_modules/ms
   Installing any new modules (package.json)
   added 1 package and audited 2559 packages in 4.381s
   found 0 vulnerabilities

-----> Build
Running heroku-postbuild

   > [email protected] heroku-postbuild /tmp/build_d5f57799a293d321f3d375081db0698d
   > NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client
   
   up to date in 0.344s
   found 0 vulnerabilities

npm ERR! path /tmp/build_d5f57799a293d321f3d375081db0698d/client/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/tmp/build_d5f57799a293d321f3d375081db0698d/client/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.7gQqb/_logs/2019-06-06T03_19_51_414Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 254
npm ERR! [email protected] heroku-postbuild: NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client
npm ERR! Exit status 254
npm ERR!
npm ERR! Failed at the [email protected] heroku-postbuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.7gQqb/_logs/2019-06-06T03_19_51_438Z-debug.log
-----> Build failed

   We're sorry this build is failing! You can troubleshoot common issues here:
   https://devcenter.heroku.com/articles/troubleshooting-node-deploys
   
   Some possible problems:
   
   - node_modules checked into source control
     https://blog.heroku.com/node-habits-2016#9-only-git-the-important-bits
   
   Love,
   Heroku

! Push rejected, failed to compile Node.js app.
! Push failed

Issue while deploying to heroku

Created app using this, and worked fine in localhost. While try to deploy to heroku it shows error.

remote: npm ERR! path /tmp/build_6a121e9cb8074af263e289230b4020cf/client/package.json
remote: npm ERR! code ENOENT
remote: npm ERR! errno -2
remote: npm ERR! syscall open
remote: npm ERR! enoent ENOENT: no such file or directory, open '/tmp/build_6a121e9cb8074af263e289230b4020cf/client/package.json'
remote: npm ERR! enoent This is related to npm not being able to find a file.
remote: npm ERR! enoent
remote:
remote: npm ERR! A complete log of this run can be found in:
remote: npm ERR! /tmp/npmcache.ahlWT/_logs/2018-11-22T09_34_46_760Z-debug.log
remote: npm ERR! code ELIFECYCLE
remote: npm ERR! errno 254
remote: npm ERR! [email protected] heroku-postbuild: NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client
remote: npm ERR! Exit status 254
remote: npm ERR!
remote: npm ERR! Failed at the [email protected] heroku-postbuild script.
remote: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
remote:
remote: npm ERR! A complete log of this run can be found in:
remote: npm ERR! /tmp/npmcache.ahlWT/_logs/2018-11-22T09_34_46_776Z-debug.log
remote:
remote: -----> Build failed
remote:
remote: We're sorry this build is failing! You can troubleshoot common issues here:
remote: https://devcenter.heroku.com/articles/troubleshooting-node-deploys
remote:
remote: Some possible problems:
remote:
remote: - node_modules checked into source control
remote: https://blog.heroku.com/node-habits-2016#9-only-git-the-important-bits
remote:
remote: - Node version not specified in package.json
remote: https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
remote:
remote: Love,
remote: Heroku
remote:
remote: ! Push rejected, failed to compile Node.js app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to enigmatic-refuge-71917.
remote:
To https://git.heroku.com/enigmatic-refuge-71917.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/enigmatic-refuge-71917.git'

Please let me know how to figure this out.

2 issues for initial setup

Hey Brad,
Been watching your videos for about a year and a half and I think they are about the highest quality videos on JavaScript on the web. (I've also bought two of your Udemy Courses - on AngularJS and NodeJS).

Anyhow. There were 2 issues when I was trying to set up this project:

Issue #1): Within your "package.json" in the root directory, you need to rethink the line:
"[npm run] client-install": "npm install --prefix client","
I'm running on Windows, and apparently it didn't install the dependencies in my client folder (even after running 'npm run client-install' in my terminal)

mern-error-1

Please note, when I cd into the client folder and install dependencies, this error went away.

Issue #2) You need to add a prerequisite to install the Redux DevTools Chrome Extension.

Keep rocking ☺️

rootReducer

How it works? Is not in the project and not compile.

After deployment app doesn't work without Redux Chrome DevTools

Code in store.js should be changed to this:

const initialState = {};

const middleware = [thunk];

const composeEnhancers = window.REDUX_DEVTOOLS_EXTENSION_COMPOSE || compose;

const enhancer = composeEnhancers(applyMiddleware(...middleware));

const store = createStore(
rootReducer,
initialState,
enhancer
);

Solution links:
zalmoxisus/redux-devtools-extension#320
https://github.com/zalmoxisus/redux-devtools-extension#12-advanced-store-setup

Build failed on heroku

IMG_20211008_030454

hello i have an issue regarding of  deploy website  when i give the command git push heroku it works perfectly to the successfully complied 11 files with babel (736ms) but then it gives me error at end saying.       do you want to install webpack-cli  (yes/no) :
Remote - - - - > Build failed

Info visit https://yarnpkg.com/en/docs/cli/run

While i have already downloaded webpack-cli and also updated versions

Heroku cannot find the React index.html file

When I open the app, it just says "Not Found".

The application logs show the following error:

2022-05-11T15:03:24.669057+00:00 app[web.1]: Error: ENOENT: no such file or directory, stat '/app/client/build/index.html'

cannot get /

i have build sucessfully but heroku shows CANNOT GET/

"npm run client-install" not working

I could not install the client side's dependencies from my directory root. Instead of installing dependencies, it created a folder with all the project's file again.

UPDATED:
Solutions:

  1. I ran npm install && cd client && npm install and worked as a charm.
  2. You need to include client-install: "cd client && npm install" in the package.json

Items missing

When I deploy to Heroku the rows in the app don't work (not visible). Items I add don't get shown and existing row items don't show either. The header/banner displays and the Add Item button triggers the Modal however. Any ideas where I could be having an issue? The local version works perfectly. I have Vagrant/Laravel Homestead local dev environment.
Thanks for the tutorials btw. Much appreciated.

I get error response even though registration is successful

Hi Brad, I am facing an issue I get an err.response even though the user is registered to the database.

Here is my dispatch

export const register = ({
firstName,
lastName,
email,
password,
rePassword
}) => dispatch => {
// Headers
const config = {
headers: {
"Content-type": "application/json"
}
};

const body = JSON.stringify({
firstName,
lastName,
email,
password,
rePassword
});

axios
.post(${process.env.REACT_APP_API_URL}/users/create, body, config)
.then(res =>
dispatch({
type: REGISTER_SUCCESS,
payload: res.data
})
)
.catch(err => {
dispatch(
returnErrors(
err.response.data,
err.response.status,
"REGISTER_FAIL"
)
)
dispatch({
type: REGISTER_FAIL
});
});
};

Error displayed!!!

Unhandled Rejection (TypeError): err.response is undefined

78 | })
79 | )
80 | .catch(err => {

81 | dispatch(
| ^ 82 | returnErrors(
83 | err.response.data,
84 | err.response.status,

Getting 404 (Not found) error using axios in a redux action creator, to make api calls to an expressJs backend

The file system, front-end, and back-end architecture are modeled after this project, but action creators are returning 404s.

Example action creator
`export const registerUser = (SignUpFormData) => dispatch => {
const configs = {
headers: {
'Content-Type': 'application/json'
},
proxy: {
host: "http://localhost:5000",
port: 5000
}
};

const requestBody = JSON.stringify({...SignUpFormData});

axios.post('/api/users/register', requestBody, configs)
.then(res => {
    dispatch({
        type: UserActions.USER_AWAITING_EMAIL_VERIFICATION,
        userInfo: res.data.userName,
        msg: res.data.msg,
    })
})
.catch(error => {
    dispatch(returnAuthErros(error.response.data.msg, error.response.status, 'USER_SIGNUP_FALIURE'));
    dispatch({
        type: UserActions.USER_SIGNUP_FALIURE,
        msg: error.response.data.msg
    });
})

} `

Build fails on deploying [Heroku]

Coming from this issue I opened as well in Stackoverflow

It works fine in the localhost, but when I try to push it to heroku I have this issue. I was following the Brad Traversy course about MERN but I got this and I can't continue.

This is my package.json

     "scripts": {
            "client-install": "npm install --prefix client",
            "start": "node server.js",
            "server": "nodemon server.js",
            "client": "npm start --prefix client",
            "dev": "concurrently \"npm run server\" \"npm run client\"",
            "heroku-postbuild": "NPM_CONFIG_PRODUCTION= false npm install --prefix client && npm run build --prefix client"
        },
        "dependencies": {
            "body-parser": "^1.19.0",
            "concurrently": "^5.1.0",
            "express": "^4.17.1",
            "mongoose": "^5.9.7"
        },
        "devDependencies": {
            "cz-conventional-changelog": "^3.1.0",
            "nodemon": "^2.0.2"
        },
        "config": {
            "commitizen": {
                "path": "./node_modules/cz-conventional-changelog"
            }
        }

And this is the build error I'm getting.

        mbpdegobiaruben:MERN ShoppingList gchan$ git push heroku master
    Enumerating objects: 143, done.
    Counting objects: 100% (143/143), done.
    Delta compression using up to 8 threads
    Compressing objects: 100% (134/134), done.
    Writing objects: 100% (143/143), 208.32 KiB | 5.48 MiB/s, done.
    Total 143 (delta 63), reused 0 (delta 0)
    remote: Compressing source files... done.
    remote: Building source:
    remote: 
    remote: -----> Node.js app detected
    remote:        
    remote: -----> Creating runtime environment
    remote:        
    remote:        NPM_CONFIG_LOGLEVEL=error
    remote:        NODE_ENV=production
    remote:        NODE_MODULES_CACHE=true
    remote:        NODE_VERBOSE=false
    remote:        
    remote: -----> Installing binaries
    remote:        engines.node (package.json):  unspecified
    remote:        engines.npm (package.json):   unspecified (use default)
    remote:        
    remote:        Resolving node version 12.x...
    remote:        Downloading and installing node 12.16.2...
    remote:        Using default npm version: 6.14.4
    remote:        
    remote: -----> Installing dependencies
    remote:        Installing node modules
    remote:        
    remote:        > [email protected] postinstall /tmp/build_33801817cc54d90aaf94bfb41e439539/node_modules/core-js
    remote:        > node -e "try{require('./postinstall')}catch(e){}"
    remote:        
    remote:        
    remote:        > [email protected] postinstall /tmp/build_33801817cc54d90aaf94bfb41e439539/node_modules/nodemon
    remote:        > node bin/postinstall || exit 0
    remote:        
    remote:        Love nodemon? You can now support the project via the open collective:
    remote:         > https://opencollective.com/nodemon/donate
    remote:        
    remote:        added 419 packages in 8.418s
    remote:        
    remote: -----> Build
    remote:        Running heroku-postbuild
    remote:        
    remote:        > [email protected] heroku-postbuild /tmp/build_33801817cc54d90aaf94bfb41e439539
    remote:        > NPM_CONFIG_PRODUCTION= false npm install --prefix client && npm run build --prefix client
    remote:        
    remote: npm ERR! code ELIFECYCLE
    remote: npm ERR! errno 1
    remote: npm ERR! [email protected] heroku-postbuild: `NPM_CONFIG_PRODUCTION= false npm install --prefix client && npm run build --prefix client`
    remote: npm ERR! Exit status 1
    remote: npm ERR! 
    remote: npm ERR! Failed at the [email protected] heroku-postbuild script.
    remote: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    remote: 
    remote: npm ERR! A complete log of this run can be found in:
    remote: npm ERR!     /tmp/npmcache.O2wff/_logs/2020-04-16T05_41_17_476Z-debug.log
    remote: 
    remote: -----> Build failed
    remote:        
    remote:        We're sorry this build is failing! You can troubleshoot common issues here:
    remote:        https://devcenter.heroku.com/articles/troubleshooting-node-deploys
    remote:        
    remote:        Some possible problems:
    remote:        
    remote:        - Node version not specified in package.json
    remote:          https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
    remote:        
    remote:        Love,
    remote:        Heroku
    remote:        
    remote:  !     Push rejected, failed to compile Node.js app.
    remote: 
    remote:  !     Push failed
    remote: Verifying deploy...
    remote: 
    remote: !       Push rejected to pacific-dawn-61320.
    remote: 
    To https://git.heroku.com/pacific-dawn-61320.git
     ! [remote rejected] master -> master (pre-receive hook declined)
    error: failed to push some refs to 'https://git.heroku.com/pacific-dawn-61320.git'

MongoDB error: 'current uri string parse is deprecated and will be removed'

Hi Brad,

I was getting the following error when running the app (assuming somebody is following along your tutorial and installs the latest version of mongoose v5.2.2 ).

Current string parser is deprecated and will be removed soon...

After some research I found out that for now the following needs to be added to the db config in server.js

// DB Config
const db = require('./config/keys').mongoURI;

// Connect to Mongo
mongoose
  .connect(db, {useNewUrlParser: true})
  .then(() => console.log('MongoDB Connected...'))
  .catch(err => console.log(err));

That should fix it...

PS: Just FYI in case you encounter this issue in the future... Love your work!!!

What to do if I have frontend and backend in two different folder

I have setup my frontend and backend in two different folders inside root, while I am able to run
npm run dev by some modifications like using cd ../projectfrontend && npm start

But I am facing issue when i run heroku-postbuild, it is not able to find the directory.

Modals not closing after authentication

LoginModal and RegisterModal do not close after authentication.
The user gets added to the mongo database, I get the token on redux dev tools actions along with LOGIN_SUCCESS but the modal stays stuck and therefore can't login/logout.

Code doesn't work on Heroku Correctly

Will build and display on heroku correctly but the interactions don't seem to work and there is nothing displaying. I don't know enought about this stack to say what happened.

TypeError: "t.map is not a function" value ShoppingList.js:30

I don't get this error when testing locally. Everything functions perfectly.
It is only after I've deployed to Heroku. I've checked the Heroku logs and there's no problem there.

I can see the app run for a fraction of a second and then get a blank screen; whether I use Chrome, Firefox, or Safari.

I hope someone can help.

Update route addition

I'm working on a To Do List app based on this repo and everything work well so far. The only only issue I'm stuck at is adding a proper Update reducer and action. I'm not quite sure if it's similar to the Delete action and reducer or something entirely different. Still researching articles on my end, but any help would be appreciated on how to approach this.

App Deployment Issue

image

When I run the trace log I am getting the below error

image

I have searched and found out we have to add "type": "module" in package.json (I have added it in the server's package.json file
but again some other error

image

Errors when running project

Local test - when submitting credentials
Proxy error: Could not proxy request /api/items from localhost:3000 to http://localhost:5000/. [1] See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).

When deploying to heroku - error log :

-----> Building on the Heroku-20 stack
-----> Node.js app detected

-----> Creating runtime environment

   NPM_CONFIG_LOGLEVEL=error
   NODE_VERBOSE=false
   NODE_ENV=production
   NODE_MODULES_CACHE=true

-----> Installing binaries
engines.node (package.json): unspecified
engines.npm (package.json): unspecified (use default)

   Resolving node version 12.x...
   Downloading and installing node 12.20.1...
   Using default npm version: 6.14.10

-----> Installing dependencies
Installing node modules (package.json)

   > [email protected] postinstall /tmp/build_e7159bee/node_modules/core-js
   > node -e "try{require('./postinstall')}catch(e){}"
   
   
   > [email protected] postinstall /tmp/build_e7159bee/node_modules/nodemon
   > node bin/postinstall || exit 0
   
   Love nodemon? You can now support the project via the open collective:
    > https://opencollective.com/nodemon/donate
   
   added 529 packages from 324 contributors and audited 531 packages in 19.175s
   
   7 packages are looking for funding
     run `npm fund` for details
   
   found 1 low severity vulnerability
     run `npm audit fix` to fix them, or `npm audit` for details

-----> Build
Running heroku-postbuild

   > [email protected] heroku-postbuild /tmp/build_e7159bee
   > NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client
   
   
   > [email protected] postinstall /tmp/build_e7159bee/client/node_modules/babel-runtime/node_modules/core-js
   > node -e "try{require('./postinstall')}catch(e){}"
   
   
   > [email protected] postinstall /tmp/build_e7159bee/client/node_modules/core-js
   > node -e "try{require('./postinstall')}catch(e){}"
   
   
   > [email protected] postinstall /tmp/build_e7159bee/client/node_modules/core-js-pure
   > node -e "try{require('./postinstall')}catch(e){}"
   
   added 1690 packages from 1077 contributors and audited 1703 packages in 62.777s
   
   78 packages are looking for funding
     run `npm fund` for details
   
   found 5 vulnerabilities (1 low, 4 high)
     run `npm audit fix` to fix them, or `npm audit` for details
   
   > [email protected] build /tmp/build_e7159bee/client
   > react-scripts build
   
   Creating an optimized production build...
   Failed to compile.
   
   /tmp/build_e7159bee/client/src/App.tsx
   TypeScript error in /tmp/build_e7159bee/client/src/App.tsx(1,34):
   Could not find a declaration file for module 'react'. '/tmp/build_e7159bee/client/node_modules/react/index.js' implicitly has an 'any' type.
     If the 'react' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react`  TS7016
   
     > 1 | import React, { useEffect } from 'react';
         |                                  ^
       2 | import AppNavbar from './components/AppNavbar';
       3 | import ShoppingList from './components/ShoppingList';
       4 | import ItemModal from './components/ItemModal';

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: react-scripts build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.o5qtJ/_logs/2021-01-22T22_42_26_188Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] heroku-postbuild: NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] heroku-postbuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.o5qtJ/_logs/2021-01-22T22_42_26_216Z-debug.log
-----> Build failed

   We're sorry this build is failing! You can troubleshoot common issues here:
   https://devcenter.heroku.com/articles/troubleshooting-node-deploys
   
   Some possible problems:
   
   - Node version not specified in package.json
     https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
   
   Love,
   Heroku

! Push rejected, failed to compile Node.js app.
! Push failed

NoAuth user actions

All works well, but i have an issue when NoAuthenticated user can successfully delete items, where might be a mistake?

Invalid Host header

Hi good people,

I managed to deploy to heroku, but when I open the app, it gave me this message "Invalid Host header" and the page just display nothing....anyone has this situation? thank you for your kind advice.

remove() is a deprecated function

After taking your course on youtube, I used the remove() function and I noticed all the items on the list get deleted. Then I did a little read up and saw that remove() is a deprecated function and has been replaced by deleteOne() (to delete a single document). I updated my code and it was fine. Thought you should know. Thanks!

According to Redux docs, reducers should be free of side-effects

Brad,
Thanks for educating the coding masses! I can't imagine were I would be without having you walk me through the steps needed to build MERN apps.

You have all of the localStorage method calls inside of the reducers. While this works, Redux suggests not producing side-effects from reducers. I put them inside of the action creators (which I think is where they are supposed to be) and things work as expected.
https://redux.js.org/glossary#reducer

Issue while deploying to heroku

-----> Installing dependencies
Prebuild detected (node_modules already exists)
Rebuilding any native modules
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/express
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/accepts
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/mime-types
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/mime-db
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/negotiator
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/array-flatten
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/body-parser
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/bytes
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/content-type
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/debug
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/ms
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/depd
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/http-errors
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/inherits
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/setprototypeof
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/statuses
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/toidentifier
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/iconv-lite
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/safer-buffer
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/on-finished
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/ee-first
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/qs
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/raw-body
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/unpipe
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/type-is
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/media-typer
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/content-disposition
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/safe-buffer
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/cookie
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/cookie-signature
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/encodeurl
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/escape-html
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/etag
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/finalhandler
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/parseurl
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/fresh
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/merge-descriptors
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/methods
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/path-to-regexp
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/proxy-addr
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/forwarded
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/ipaddr.js
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/range-parser
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/send
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/destroy
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/mime
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/send/node_modules/ms
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/serve-static
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/utils-merge
[email protected] /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/vary
Installing any new modules (package.json)

   > [email protected] postinstall /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/node_modules/nodemon
   > node bin/postinstall || exit 0
   
   Love nodemon? You can now support the project via the open collective:
    > https://opencollective.com/nodemon/donate
   
   added 177 packages from 89 contributors and audited 228 packages in 7.976s
   
   11 packages are looking for funding
     run `npm fund` for details
   
   found 0 vulnerabilities

-----> Build
Running heroku-postbuild

   > [email protected] heroku-postbuild /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c
   > NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client
   
   up to date in 0.248s
   found 0 vulnerabilities

npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/client/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/tmp/build_9ae6d8f874330b53c9410b0dd2bf4a7c/client/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.R3Lmg/_logs/2020-06-24T05_52_15_157Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 254
npm ERR! [email protected] heroku-postbuild: NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client
npm ERR! Exit status 254
npm ERR!
npm ERR! Failed at the [email protected] heroku-postbuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.R3Lmg/_logs/2020-06-24T05_52_15_174Z-debug.log
-----> Build failed

   We're sorry this build is failing! You can troubleshoot common issues here:
   https://devcenter.heroku.com/articles/troubleshooting-node-deploys
   
   Some possible problems:
   
   - node_modules checked into source control
     https://blog.heroku.com/node-habits-2016#9-only-git-the-important-bits
   
   Love,
   Heroku

! Push rejected, failed to compile Node.js app.
! Push failed

Successful Heroku Deployment but Application not rendered - ES6 Issue

Hey guys, since the change to ES6 and the inclusion of Typescript in the client, the server code, using import / export from ES6 too, seems broken when in production on Heroku.

Tried to include Typescript on the server side, changing back to const / require but nothing seems to bring Heroku to render the ES6 changes. Variables (.env) are properly declared in Heroku Settings and package-lock.json and node_modules not included in the upload.

Would appreciate it if someone can have a look at the ES6 server side issue.

this project does not run lot of issues

There are lot of issues.
npm WARN [email protected] requires a peer of @babel/core@^7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of webpack@>=2 but none is installed. You must install peer dependencies yourself.
Why need to use babel?

npm WARN deprecated @types/[email protected]: This is a stub types definition for Redux Thunk (https://github.com/gaearon/redux-thunk).
Redux Thunk provides its own type definitions, so you don't need @types/redux-thunk installed!
npm WARN deprecated @types/[email protected]: This is a stub types definition for axios (https://github.com/mzabriskie/axios). axios provides its own type definitions, so you don't need @types/axios installed!
npm WARN deprecated @types/[email protected]: This is a stub types definition for Redux (https://github.com/reactjs/redux). Redux provides its own type definitions, so you don't need @types/redux installed!
npm WARN deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
npm WARN deprecated @types/[email protected]: This is a stub types definition for redux-saga (https://github.com/redux-saga/redux-saga). redux-saga provides its own type definitions, so you don't need @types/redux-saga installed!
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated [email protected]: use String.prototype.padStart()
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.

did not work. xhr.js:178 GET http://localhost:3000/api/auth/user 401 (Unauthorized)

does axios throw a 401 error in the console even when you catch it?

I've the app working pretty well, but one thing I notice is that if there is no token, a 401 not authorized error appears in the console when you start the app.

I know it's coming from the loadUser action, but the axios call that request has a catch function to dispatch the return error and auth error actions. So shouldn't the catch function prevent the error in the console? Code is below.

export const loadUser = () => (dispatch, getState) => {
//user loading
dispatch({ type: USER_LOADING });
axios
.get('/api/auth/user', tokenConfig(getState))
.then(res =>
dispatch({
type: USER_LOADED,
user: res.data
})
)
.catch(err => {
dispatch(returnErrors(err.response.data, err.response.status));
dispatch({
type: AUTH_ERROR
});
});
};

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.