Cannot find './lib' for mongoose Heroku - heroku

I have a MEAN stack app that I can't upload to heroku due to the error:
Cannot find './lib/' for mongoose or some module.
I have no idea why this is a problem or how to fix it. The application works fine on localhost but heroku does not want to take the application over this insignificant issue.
Here are my logs:
$ heroku logs -n 150 --app mathverter
←[36m2015-09-20T07:19:45.017786+00:00 app[web.1]:←[0m npm ERR! node v0.12.7
←[36m2015-09-20T07:19:45.018160+00:00 app[web.1]:←[0m npm ERR! npm v2.11.3
←[36m2015-09-20T07:19:45.018421+00:00 app[web.1]:←[0m npm ERR! code ELIFECYCLE
←[36m2015-09-20T07:19:45.018584+00:00 app[web.1]:←[0m npm ERR! Mathverter#0.0.0 start: `node ./bin/www`
←[36m2015-09-20T07:19:45.018711+00:00 app[web.1]:←[0m npm ERR! Exit status 1
←[36m2015-09-20T07:19:45.018877+00:00 app[web.1]:←[0m npm ERR!
←[36m2015-09-20T07:19:45.019020+00:00 app[web.1]:←[0m npm ERR! Failed at the Mathverter#0.0.0 start script 'node ./bin/www'.
←[36m2015-09-20T07:19:45.019163+00:00 app[web.1]:←[0m npm ERR! This is most likely a problem with the Mathverter package,
←[36m2015-09-20T07:19:45.019294+00:00 app[web.1]:←[0m npm ERR! not with npm itself.
←[36m2015-09-20T07:19:45.019414+00:00 app[web.1]:←[0m npm ERR! Tell the author that this fails on your system:
←[36m2015-09-20T07:19:45.019535+00:00 app[web.1]:←[0m npm ERR! node ./bin/www
←[36m2015-09-20T07:19:45.019784+00:00 app[web.1]:←[0m npm ERR! npm owner ls Mathverter
←[36m2015-09-20T07:19:45.019664+00:00 app[web.1]:←[0m npm ERR! You can get their info via:
←[36m2015-09-20T07:19:45.019925+00:00 app[web.1]:←[0m npm ERR! There is likely additional logging output above.
←[36m2015-09-20T07:19:45.022292+00:00 app[web.1]:←[0m
←[36m2015-09-20T07:19:45.784910+00:00 heroku[web.1]:←[0m State changed from starting to crashed
←[36m2015-09-20T07:19:45.785828+00:00 heroku[web.1]:←[0m State changed from crashed to starting
←[36m2015-09-20T07:19:45.773738+00:00 heroku[web.1]:←[0m Process exited with status 1
←[36m2015-09-20T07:19:47.763035+00:00 heroku[web.1]:←[0m Starting process with command `npm start`
←[36m2015-09-20T07:19:49.741626+00:00 app[web.1]:←[0m > Mathverter#0.0.0 start /app
←[36m2015-09-20T07:19:49.741602+00:00 app[web.1]:←[0m
←[36m2015-09-20T07:19:49.741628+00:00 app[web.1]:←[0m > node ./bin/www
←[36m2015-09-20T07:19:49.741629+00:00 app[web.1]:←[0m
←[36m2015-09-20T07:19:50.072254+00:00 app[web.1]:←[0m npm ERR! Linux 3.13.0-61-generic
←[36m2015-09-20T07:19:50.077867+00:00 app[web.1]:←[0m npm ERR! Please include the following file with any support request:
←[36m2015-09-20T07:19:50.053472+00:00 app[web.1]:←[0m module.js:338
←[36m2015-09-20T07:19:50.053478+00:00 app[web.1]:←[0m throw err;
←[36m2015-09-20T07:19:50.053479+00:00 app[web.1]:←[0m ^
←[36m2015-09-20T07:19:50.077988+00:00 app[web.1]:←[0m npm ERR! /app/npm-debug.log
←[36m2015-09-20T07:19:50.053481+00:00 app[web.1]:←[0m Error: Cannot find module './lib/'
←[36m2015-09-20T07:19:50.053482+00:00 app[web.1]:←[0m at Function.Module._resolveFilename (module.js:336:15)
←[36m2015-09-20T07:19:50.053483+00:00 app[web.1]:←[0m at Function.Module._load (module.js:278:25)
←[36m2015-09-20T07:19:50.053485+00:00 app[web.1]:←[0m at Module.require (module.js:365:17)
←[36m2015-09-20T07:19:50.053486+00:00 app[web.1]:←[0m at require (module.js:384:17)
←[36m2015-09-20T07:19:50.053487+00:00 app[web.1]:←[0m at Object.<anonymous> (/app/node_modules/mongoose/index.js:7:18)
←[36m2015-09-20T07:19:50.053488+00:00 app[web.1]:←[0m at Module._compile (module.js:460:26)
←[36m2015-09-20T07:19:50.053490+00:00 app[web.1]:←[0m at Object.Module._extensions..js (module.js:478:10)
←[36m2015-09-20T07:19:50.053491+00:00 app[web.1]:←[0m at Module.load (module.js:355:32)
←[36m2015-09-20T07:19:50.053492+00:00 app[web.1]:←[0m at Function.Module._load (module.js:310:12)
←[36m2015-09-20T07:19:50.067627+00:00 app[web.1]:←[0m
←[36m2015-09-20T07:19:50.053493+00:00 app[web.1]:←[0m at Module.require (module.js:365:17)
←[36m2015-09-20T07:19:50.072963+00:00 app[web.1]:←[0m npm ERR! node v0.12.7
←[36m2015-09-20T07:19:50.072734+00:00 app[web.1]:←[0m npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "sta
rt"
←[36m2015-09-20T07:19:50.073400+00:00 app[web.1]:←[0m npm ERR! npm v2.11.3
←[36m2015-09-20T07:19:50.073786+00:00 app[web.1]:←[0m npm ERR! Mathverter#0.0.0 start: `node ./bin/www`
←[36m2015-09-20T07:19:50.073613+00:00 app[web.1]:←[0m npm ERR! code ELIFECYCLE
←[36m2015-09-20T07:19:50.073923+00:00 app[web.1]:←[0m npm ERR! Exit status 1
←[36m2015-09-20T07:19:50.074068+00:00 app[web.1]:←[0m npm ERR!
←[36m2015-09-20T07:19:50.074218+00:00 app[web.1]:←[0m npm ERR! Failed at the Mathverter#0.0.0 start script 'node ./bin/www'.
←[36m2015-09-20T07:19:50.074493+00:00 app[web.1]:←[0m npm ERR! not with npm itself.
←[36m2015-09-20T07:19:50.074366+00:00 app[web.1]:←[0m npm ERR! This is most likely a problem with the Mathverter package,
←[36m2015-09-20T07:19:50.074623+00:00 app[web.1]:←[0m npm ERR! Tell the author that this fails on your system:
←[36m2015-09-20T07:19:50.074747+00:00 app[web.1]:←[0m npm ERR! node ./bin/www
←[36m2015-09-20T07:19:50.075143+00:00 app[web.1]:←[0m npm ERR! There is likely additional logging output above.
←[36m2015-09-20T07:19:50.074871+00:00 app[web.1]:←[0m npm ERR! You can get their info via:
←[36m2015-09-20T07:19:50.075014+00:00 app[web.1]:←[0m npm ERR! npm owner ls Mathverter
←[36m2015-09-20T07:19:50.077584+00:00 app[web.1]:←[0m
←[36m2015-09-20T07:19:50.785433+00:00 heroku[web.1]:←[0m State changed from starting to crashed
←[36m2015-09-20T07:19:50.772782+00:00 heroku[web.1]:←[0m Process exited with status 1
←[33m2015-09-20T07:32:55.507451+00:00 heroku[router]:←[0m at=error code=H10 desc="App crashed" method=GET path="/" host=mathverte
r.herokuapp.com request_id=de6a5664-77ef-4086-9051-1c704acc841c fwd="162.242.10.35" dyno= connect= service= status=503 bytes=
←[33m2015-09-20T07:32:57.442161+00:00 heroku[router]:←[0m at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" hos
t=mathverter.herokuapp.com request_id=e734aa20-adfd-43bd-a0b8-f961971b282f fwd="162.242.10.35" dyno= connect= service= status=503
bytes=
←[32m2015-09-20T07:34:33.332655+00:00 heroku[api]:←[0m Release v12 created by mikeyjm14#gmail.com
←[32m2015-09-20T07:34:33.332544+00:00 heroku[api]:←[0m Deploy 0afa73e by mikeyjm14#gmail.com
←[35m2015-09-20T07:34:33.418096+00:00 heroku[slug-compiler]:←[0m Slug compilation started
←[35m2015-09-20T07:34:33.418111+00:00 heroku[slug-compiler]:←[0m Slug compilation finished
←[36m2015-09-20T07:34:33.884081+00:00 heroku[web.1]:←[0m State changed from crashed to starting
←[36m2015-09-20T07:34:35.807701+00:00 heroku[web.1]:←[0m Starting process with command `npm start`
←[36m2015-09-20T07:34:37.677570+00:00 app[web.1]:←[0m
←[36m2015-09-20T07:34:37.677590+00:00 app[web.1]:←[0m > Mathverter#0.0.0 start /app
←[36m2015-09-20T07:34:37.677592+00:00 app[web.1]:←[0m > node ./bin/www
←[36m2015-09-20T07:34:37.677593+00:00 app[web.1]:←[0m
←[36m2015-09-20T07:34:37.992221+00:00 app[web.1]:←[0m module.js:338
←[36m2015-09-20T07:34:37.992226+00:00 app[web.1]:←[0m throw err;
←[36m2015-09-20T07:34:37.992227+00:00 app[web.1]:←[0m ^
←[36m2015-09-20T07:34:37.992229+00:00 app[web.1]:←[0m Error: Cannot find module './lib'
←[36m2015-09-20T07:34:37.992231+00:00 app[web.1]:←[0m at Function.Module._resolveFilename (module.js:336:15)
←[36m2015-09-20T07:34:37.992232+00:00 app[web.1]:←[0m at Function.Module._load (module.js:278:25)
←[36m2015-09-20T07:34:37.992233+00:00 app[web.1]:←[0m at Module.require (module.js:365:17)
←[36m2015-09-20T07:34:37.992234+00:00 app[web.1]:←[0m at require (module.js:384:17)
←[36m2015-09-20T07:34:37.992235+00:00 app[web.1]:←[0m at Object.<anonymous> (/app/node_modules/mongoose/index.js:7:18)
←[36m2015-09-20T07:34:37.992237+00:00 app[web.1]:←[0m at Module._compile (module.js:460:26)
←[36m2015-09-20T07:34:37.992238+00:00 app[web.1]:←[0m at Object.Module._extensions..js (module.js:478:10)
←[36m2015-09-20T07:34:37.992240+00:00 app[web.1]:←[0m at Function.Module._load (module.js:310:12)
←[36m2015-09-20T07:34:37.992241+00:00 app[web.1]:←[0m at Module.require (module.js:365:17)
←[36m2015-09-20T07:34:38.005366+00:00 app[web.1]:←[0m
←[36m2015-09-20T07:34:38.010488+00:00 app[web.1]:←[0m npm ERR! node v0.12.7
←[36m2015-09-20T07:34:38.010274+00:00 app[web.1]:←[0m npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "sta
rt"
←[36m2015-09-20T07:34:37.992239+00:00 app[web.1]:←[0m at Module.load (module.js:355:32)
←[36m2015-09-20T07:34:38.010859+00:00 app[web.1]:←[0m npm ERR! npm v2.11.3
←[36m2015-09-20T07:34:38.011120+00:00 app[web.1]:←[0m npm ERR! code ELIFECYCLE
←[36m2015-09-20T07:34:38.011277+00:00 app[web.1]:←[0m npm ERR! Mathverter#0.0.0 start: `node ./bin/www`
←[36m2015-09-20T07:34:38.011406+00:00 app[web.1]:←[0m npm ERR! Exit status 1
←[36m2015-09-20T07:34:38.011688+00:00 app[web.1]:←[0m npm ERR! Failed at the Mathverter#0.0.0 start script 'node ./bin/www'.
←[36m2015-09-20T07:34:38.011841+00:00 app[web.1]:←[0m npm ERR! This is most likely a problem with the Mathverter package,
←[36m2015-09-20T07:34:38.009827+00:00 app[web.1]:←[0m npm ERR! Linux 3.13.0-61-generic
←[36m2015-09-20T07:34:38.012210+00:00 app[web.1]:←[0m npm ERR! node ./bin/www
←[36m2015-09-20T07:34:38.012090+00:00 app[web.1]:←[0m npm ERR! Tell the author that this fails on your system:
←[36m2015-09-20T07:34:38.011965+00:00 app[web.1]:←[0m npm ERR! not with npm itself.
←[36m2015-09-20T07:34:38.015234+00:00 app[web.1]:←[0m npm ERR! Please include the following file with any support request:
←[36m2015-09-20T07:34:38.015349+00:00 app[web.1]:←[0m npm ERR! /app/npm-debug.log
←[36m2015-09-20T07:34:38.012332+00:00 app[web.1]:←[0m npm ERR! You can get their info via:
←[36m2015-09-20T07:34:38.012457+00:00 app[web.1]:←[0m npm ERR! npm owner ls Mathverter
←[36m2015-09-20T07:34:38.012577+00:00 app[web.1]:←[0m npm ERR! There is likely additional logging output above.
←[36m2015-09-20T07:34:38.014952+00:00 app[web.1]:←[0m
←[36m2015-09-20T07:34:38.011551+00:00 app[web.1]:←[0m npm ERR!
←[36m2015-09-20T07:34:38.686484+00:00 heroku[web.1]:←[0m Process exited with status 1
←[36m2015-09-20T07:34:38.696577+00:00 heroku[web.1]:←[0m State changed from starting to crashed
←[36m2015-09-20T07:34:38.697704+00:00 heroku[web.1]:←[0m State changed from crashed to starting
←[36m2015-09-20T07:34:40.978464+00:00 heroku[web.1]:←[0m Starting process with command `npm start`
←[36m2015-09-20T07:34:43.075173+00:00 app[web.1]:←[0m
←[36m2015-09-20T07:34:43.075200+00:00 app[web.1]:←[0m > Mathverter#0.0.0 start /app
←[36m2015-09-20T07:34:43.075202+00:00 app[web.1]:←[0m > node ./bin/www
←[36m2015-09-20T07:34:43.075203+00:00 app[web.1]:←[0m
←[36m2015-09-20T07:34:43.570428+00:00 app[web.1]:←[0m module.js:338
←[36m2015-09-20T07:34:43.570434+00:00 app[web.1]:←[0m throw err;
←[36m2015-09-20T07:34:43.570436+00:00 app[web.1]:←[0m ^
←[36m2015-09-20T07:34:43.570438+00:00 app[web.1]:←[0m Error: Cannot find module './lib'
←[36m2015-09-20T07:34:43.570440+00:00 app[web.1]:←[0m at Function.Module._resolveFilename (module.js:336:15)
←[36m2015-09-20T07:34:43.570441+00:00 app[web.1]:←[0m at Function.Module._load (module.js:278:25)
←[36m2015-09-20T07:34:43.570443+00:00 app[web.1]:←[0m at Module.require (module.js:365:17)
←[36m2015-09-20T07:34:43.570444+00:00 app[web.1]:←[0m at require (module.js:384:17)
←[36m2015-09-20T07:34:43.570446+00:00 app[web.1]:←[0m at Object.<anonymous> (/app/node_modules/mongoose/index.js:7:18)
←[36m2015-09-20T07:34:43.570447+00:00 app[web.1]:←[0m at Module._compile (module.js:460:26)
←[36m2015-09-20T07:34:43.570448+00:00 app[web.1]:←[0m at Object.Module._extensions..js (module.js:478:10)
←[36m2015-09-20T07:34:43.570450+00:00 app[web.1]:←[0m at Module.load (module.js:355:32)
←[36m2015-09-20T07:34:43.570451+00:00 app[web.1]:←[0m at Function.Module._load (module.js:310:12)
←[36m2015-09-20T07:34:43.570453+00:00 app[web.1]:←[0m at Module.require (module.js:365:17)
←[36m2015-09-20T07:34:43.588426+00:00 app[web.1]:←[0m
←[36m2015-09-20T07:34:43.595199+00:00 app[web.1]:←[0m npm ERR! Linux 3.13.0-61-generic
←[36m2015-09-20T07:34:43.595786+00:00 app[web.1]:←[0m npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "sta
rt"
←[36m2015-09-20T07:34:43.603961+00:00 app[web.1]:←[0m npm ERR! Please include the following file with any support request:
←[36m2015-09-20T07:34:43.596062+00:00 app[web.1]:←[0m npm ERR! node v0.12.7
←[36m2015-09-20T07:34:43.604145+00:00 app[web.1]:←[0m npm ERR! /app/npm-debug.log
←[36m2015-09-20T07:34:43.596760+00:00 app[web.1]:←[0m npm ERR! npm v2.11.3
←[36m2015-09-20T07:34:43.597235+00:00 app[web.1]:←[0m npm ERR! code ELIFECYCLE
←[36m2015-09-20T07:34:43.597802+00:00 app[web.1]:←[0m npm ERR! Exit status 1
←[36m2015-09-20T07:34:43.597579+00:00 app[web.1]:←[0m npm ERR! Mathverter#0.0.0 start: `node ./bin/www`
←[36m2015-09-20T07:34:43.598044+00:00 app[web.1]:←[0m npm ERR!
←[36m2015-09-20T07:34:43.598250+00:00 app[web.1]:←[0m npm ERR! Failed at the Mathverter#0.0.0 start script 'node ./bin/www'.
←[36m2015-09-20T07:34:43.598464+00:00 app[web.1]:←[0m npm ERR! This is most likely a problem with the Mathverter package,
←[36m2015-09-20T07:34:43.598666+00:00 app[web.1]:←[0m npm ERR! not with npm itself.
←[36m2015-09-20T07:34:43.598853+00:00 app[web.1]:←[0m npm ERR! Tell the author that this fails on your system:
←[36m2015-09-20T07:34:43.599272+00:00 app[web.1]:←[0m npm ERR! You can get their info via:
←[36m2015-09-20T07:34:43.599044+00:00 app[web.1]:←[0m npm ERR! node ./bin/www
←[36m2015-09-20T07:34:43.599454+00:00 app[web.1]:←[0m npm ERR! npm owner ls Mathverter
←[36m2015-09-20T07:34:43.599655+00:00 app[web.1]:←[0m npm ERR! There is likely additional logging output above.
←[36m2015-09-20T07:34:43.603468+00:00 app[web.1]:←[0m
←[36m2015-09-20T07:34:44.385194+00:00 heroku[web.1]:←[0m State changed from starting to crashed
←[36m2015-09-20T07:34:44.373825+00:00 heroku[web.1]:←[0m Process exited with status 1
←[33m2015-09-20T07:35:09.695223+00:00 heroku[router]:←[0m at=error code=H10 desc="App crashed" method=GET path="/" host=mathverte
r.herokuapp.com request_id=62ea033b-9748-40b9-990b-17e186b365a4 fwd="162.242.10.35" dyno= connect= service= status=503 bytes=
←[33m2015-09-20T07:35:11.294891+00:00 heroku[router]:←[0m at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" hos
t=mathverter.herokuapp.com request_id=f7ac8bd9-0510-49ad-b03e-a1385e4c9b25 fwd="162.242.10.35" dyno= connect= service= status=503
bytes=
If anyone can point me in the right direction to solving this issue, I appreciate it in advance.

After searching and debugging through the source tree terminal via Heroku commands for hours, I reinstalled mongoose and added mongoose and its current version to the list of dependencies in the package.json. Not sure why Heroku was having an issue with mongoose for it was not listed after npm installation in the package.json in a previous project I did.

Related

no such file or directory, open '/app/package.json'

Having a few deployment issue here...
As my nodejs app in github is not in the root directory (its in a graphql dir), I added a top level .buildpacks file with the following content:
graphql=https://github.com/heroku/heroku-buildpack-nodejs.git
After I tried a build there was no sign of any dynos in my app so I added a top level Procfile with contents:
web: npm start
When I deployed again, now there does seem to be a dyno (it says 'This app is using free dynos' in the overview section), however the app is still goosed :
2022-07-06T11:44:06.316635+00:00 app[api]: Deploy 79e3037a by user x#gmail.com
2022-07-06T11:44:23.060054+00:00 heroku[web.1]: Starting process with command `npm start`
2022-07-06T11:44:25.159819+00:00 app[web.1]: npm ERR! code ENOENT
2022-07-06T11:44:25.160057+00:00 app[web.1]: npm ERR! syscall open
2022-07-06T11:44:25.160249+00:00 app[web.1]: npm ERR! path /app/package.json
2022-07-06T11:44:25.160789+00:00 app[web.1]: npm ERR! errno -2
2022-07-06T11:44:25.161801+00:00 app[web.1]: npm ERR! enoent ENOENT: no such file or directory, open '/app/package.json'
2022-07-06T11:44:25.161850+00:00 app[web.1]: npm ERR! enoent This is related to npm not being able to find a file.
2022-07-06T11:44:25.161892+00:00 app[web.1]: npm ERR! enoent
2022-07-06T11:44:25.163062+00:00 app[web.1]:
2022-07-06T11:44:25.163202+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2022-07-06T11:44:25.163233+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2022-07-06T11_44_25_124Z-debug-0.log
2022-07-06T11:44:25.378220+00:00 heroku[web.1]: State changed from starting to crashed
2022-07-06T11:44:25.299092+00:00 heroku[web.1]: Process exited with status 254
what am I missing?

Heroku Strapi Error: self signed certificate code: 'DEPTH_ZERO_SELF_SIGNED_CERT'

My application does not run in production. This is the code I am getting when reviewing the log.
2020-04-21T05:15:21.000000+00:00 app[api]: Build succeeded
2020-04-21T05:15:29.986534+00:00 app[web.1]:
2020-04-21T05:15:29.986552+00:00 app[web.1]: > webzm#0.1.0 start /app
2020-04-21T05:15:29.986553+00:00 app[web.1]: > node server.js
2020-04-21T05:15:29.986553+00:00 app[web.1]:
2020-04-21T05:15:32.860504+00:00 app[web.1]: [2020-04-21T05:15:32.860Z] error self signed certificate
2020-04-21T05:15:32.863444+00:00 app[web.1]: Error: self signed certificate
2020-04-21T05:15:32.863445+00:00 app[web.1]: at TLSSocket.onConnectSecure (_tls_wrap.js:1492:34)
2020-04-21T05:15:32.863446+00:00 app[web.1]: at TLSSocket.emit (events.js:315:20)
2020-04-21T05:15:32.863446+00:00 app[web.1]: at TLSSocket._finishInit (_tls_wrap.js:935:8)
2020-04-21T05:15:32.863446+00:00 app[web.1]: at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:693:12) {
2020-04-21T05:15:32.863447+00:00 app[web.1]: code: 'DEPTH_ZERO_SELF_SIGNED_CERT'
2020-04-21T05:15:32.863448+00:00 app[web.1]: }
2020-04-21T05:15:32.876901+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2020-04-21T05:15:32.877229+00:00 app[web.1]: npm ERR! errno 1
2020-04-21T05:15:32.878225+00:00 app[web.1]: npm ERR! webzm#0.1.0 start: `node server.js`
2020-04-21T05:15:32.878324+00:00 app[web.1]: npm ERR! Exit status 1
2020-04-21T05:15:32.878522+00:00 app[web.1]: npm ERR!
2020-04-21T05:15:32.878652+00:00 app[web.1]: npm ERR! Failed at the webzm#0.1.0 start script.
2020-04-21T05:15:32.878778+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Please see the following issue: https://github.com/strapi/strapi/issues/5696
An upstream package changed the way they validate self-signed certs that cause a failure.

Not finding preact when starting app in heroku

Ok so I am having problems setting up a preact app of mine to heroku. I hooked it up to github so it builds straight into heroku, but it won't get past the preact serve and build. Here is my heroku log.
2018-10-21T09:09:23.986026+00:00 heroku[web.1]: Starting process with command `npm start`
2018-10-21T09:09:27.624952+00:00 app[web.1]:
2018-10-21T09:09:27.624970+00:00 app[web.1]: > portfolio-page#0.0.0 start /app
2018-10-21T09:09:27.624972+00:00 app[web.1]: > if-env NODE_ENV='production' && npm run serve || npm run dev
2018-10-21T09:09:27.624974+00:00 app[web.1]:
2018-10-21T09:09:28.595955+00:00 app[web.1]:
2018-10-21T09:09:28.595995+00:00 app[web.1]: > portfolio-page#0.0.0 serve /app
2018-10-21T09:09:28.595997+00:00 app[web.1]: > preact build && preact serve
2018-10-21T09:09:28.595999+00:00 app[web.1]:
2018-10-21T09:09:28.605427+00:00 app[web.1]: sh: 1: preact: not found
2018-10-21T09:09:28.613622+00:00 app[web.1]: npm ERR! file sh
2018-10-21T09:09:28.613973+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2018-10-21T09:09:28.614303+00:00 app[web.1]: npm ERR! errno ENOENT
2018-10-21T09:09:28.614652+00:00 app[web.1]: npm ERR! syscall spawn
2018-10-21T09:09:28.617301+00:00 app[web.1]: npm ERR! portfolio-page#0.0.0 serve: `preact build && preact serve`
2018-10-21T09:09:28.617670+00:00 app[web.1]: npm ERR! spawn ENOENT
2018-10-21T09:09:28.618022+00:00 app[web.1]: npm ERR!
2018-10-21T09:09:28.618469+00:00 app[web.1]: npm ERR! Failed at the portfolio-page#0.0.0 serve script.
2018-10-21T09:09:28.618707+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2018-10-21T09:09:28.639567+00:00 app[web.1]:
2018-10-21T09:09:28.639942+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2018-10-21T09:09:28.640124+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2018-10-21T09_09_28_621Z-debug.log
2018-10-21T09:09:29.383487+00:00 app[web.1]:
2018-10-21T09:09:29.383495+00:00 app[web.1]: > portfolio-page#0.0.0 dev /app
2018-10-21T09:09:29.383497+00:00 app[web.1]: > preact watch
2018-10-21T09:09:29.383498+00:00 app[web.1]:
2018-10-21T09:09:29.407743+00:00 app[web.1]: sh: 1: preact: not found
2018-10-21T09:09:29.430644+00:00 app[web.1]: npm ERR! file sh
2018-10-21T09:09:29.432029+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2018-10-21T09:09:29.433130+00:00 app[web.1]: npm ERR! errno ENOENT
2018-10-21T09:09:29.433981+00:00 app[web.1]: npm ERR! syscall spawn
2018-10-21T09:09:29.440231+00:00 app[web.1]: npm ERR! portfolio-page#0.0.0 dev: `preact watch`
2018-10-21T09:09:29.440955+00:00 app[web.1]: npm ERR! spawn ENOENT
2018-10-21T09:09:29.442297+00:00 app[web.1]: npm ERR!
2018-10-21T09:09:29.442980+00:00 app[web.1]: npm ERR! Failed at the portfolio-page#0.0.0 dev script.
2018-10-21T09:09:29.443660+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2018-10-21T09:09:29.470864+00:00 app[web.1]:
2018-10-21T09:09:29.471185+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2018-10-21T09:09:29.471425+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2018-10-21T09_09_29_449Z-debug.log
2018-10-21T09:09:29.488189+00:00 app[web.1]: npm ERR! code ELIFECYCLE
2018-10-21T09:09:29.489675+00:00 app[web.1]: npm ERR! errno 1
2018-10-21T09:09:29.497444+00:00 app[web.1]: npm ERR! portfolio-page#0.0.0 start: `if-env NODE_ENV='production' && npm run serve || npm run dev`
2018-10-21T09:09:29.497699+00:00 app[web.1]: npm ERR! Exit status 1
2018-10-21T09:09:29.498047+00:00 app[web.1]: npm ERR!
2018-10-21T09:09:29.498289+00:00 app[web.1]: npm ERR! Failed at the portfolio-page#0.0.0 start script.
2018-10-21T09:09:29.498516+00:00 app[web.1]: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2018-10-21T09:09:29.517653+00:00 app[web.1]:
2018-10-21T09:09:29.521721+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2018-10-21T09:09:29.522301+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2018-10-21T09_09_29_507Z-debug.log
2018-10-21T09:09:29.630957+00:00 heroku[web.1]: State changed from starting to crashed
2018-10-21T09:09:29.608869+00:00 heroku[web.1]: Process exited with status 1
2018-10-21T09:09:31.210092+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=portfolio-page2.herokuapp.com request_id=e499628d-4990-47b8-9dbe-56cc75fe2a60 fwd="208.77.22.116" dyno= connect= service= status=503 bytes= protocol=https
2018-10-21T09:09:31.520483+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=portfolio-page2.herokuapp.com request_id=2a39f726-a35a-4356-96d5-4c2cde7661ca fwd="208.77.22.116" dyno= connect= service= status=503 bytes= protocol=https
I have no idea how to view the complete log(if its not the same as this), and I have preact in my dependancies.
{
"private": true,
"name": "portfolio-page",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"start": "if-env NODE_ENV='production' && npm run serve || npm run dev",
"build": "preact build",
"serve": "preact build && preact serve",
"dev": "preact watch",
"lint": "eslint src",
"styleguide": "styleguidist server",
"styleguide:build": "styleguidist build"
},
"eslintConfig": {
"extends": "eslint-config-synacor"
},
"eslintIgnore": [
"build/*"
],
"devDependencies": {
"eslint": "^4.9.0",
"eslint-config-synacor": "^2.0.2",
"preact-cli": "^2.0.1",
"react-styleguidist": "^6.1.0"
},
"dependencies": {
"if-env": "^1.0.4",
"preact": "^8.3.1",
"preact-compat": "^3.17.0",
"preact-router": "^2.5.7",
"react-fa": "^5.0.0",
"react-scripts": "^2.0.5",
"react-transition-group": "^2.2.1"
}
}
I'm sorry if this is too little or too much information, but I am relatively new to this and I have been working on this for a couple days. I would be grateful for some direction. On windows 10 using VScode.
It seems like dependencies npm install are not installed and you directly running npm start that why preact not found error occur.

error starting node app on heroku

im trying to push a mean stack project to heroku, but it wont start on heroku's server. it keeps giving me the following from the applications log:
2017-12-12T23:59:32.528690+00:00 app[web.1]: npm ERR! syscall spawn
2017-12-12T23:59:32.529607+00:00 app[web.1]: npm ERR! atl#0.0.0 start:
`ng serve`
2017-12-12T23:59:32.529706+00:00 app[web.1]: npm ERR! spawn ENOENT
2017-12-12T23:59:32.529925+00:00 app[web.1]: npm ERR!
2017-12-12T23:59:32.530127+00:00 app[web.1]: npm ERR! Failed at the
atl#0.0.0 start script.
2017-12-12T23:59:32.530306+00:00 app[web.1]: npm ERR! This is probably
not a problem with npm. There is likely additional logging output
above.
2017-12-12T23:59:32.535107+00:00 app[web.1]:
2017-12-12T23:59:32.535281+00:00 app[web.1]: npm ERR! A complete log
of this run can be found in:
2017-12-12T23:59:32.535429+00:00 app[web.1]: npm ERR!
/app/.npm/_logs/2017-12-12T23_59_32_531Z-debug.log
2017-12-12T23:59:32.626726+00:00 heroku[web.1]: State changed from
starting to crashed
2017-12-12T23:59:32.613442+00:00 heroku[web.1]: Process exited with
status 1
i don''t know where to look for this problem, please let me know if i need to upload any files to help with this error, thank you in advance.

Laravel 5.4 npm run dev error: Error: Cannot find module 'lodash._baseclone'

I am trying to run following command: npm run dev. However, it is giving an error as
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
module.js:471
throw err;
^
Error: Cannot find module 'lodash._baseclone'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/var/www/html/korsall-clean/node_modules/node-
notifier/node_modules/lodash.clonedeep/index.js:9:17)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! # development: `cross-env NODE_ENV=development
node_modules/webpack/bin/webpack.js --progress --hide-modules --
config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the # development 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! /home/ubuntu/.npm/_logs/2017-06-07T10_34_11_411Z-
debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! # dev: `npm run development`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the # dev 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! /home/ubuntu/.npm/_logs/2017-06-07T10_34_11_426Z-
debug.log
I have removed node_modules folder and re-installed it, but still it is giving same error.
Please guide me wher
There is a very similar error that I found in this thread: https://github.com/meteor/meteor/issues/7221#issuecomment-226595754
There is a comment there that says the problem is related to the windows max path limitation of 260 characters. I tend to believe this is correct since I know I don't have the problem on my device that has the long paths enabled in windows - https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation
I'm getting the crash on my build server which is running another version of windows.
Try this npm i --save lodash._baseclone

Resources