ChickenKyiv / api-extended-database-Khyati

GNU General Public License v3.0
0 stars 2 forks source link

Error: Cannot create data source "photos": Cannot find module 'pkgcloud' #10

Closed atherdon closed 6 years ago

atherdon commented 6 years ago

https://sentry.io/atherdon/grocery/issues/498497917/

Error: Cannot create data source "photos": Cannot find module 'pkgcloud'
  File "/home/khyati/reservations/server/server.js", line 43, in Object.<anonymous>
    boot(app, __dirname, function(err) {
...
(49 additional frame(s) were not displayed)

Error: Cannot create data source "photos": Cannot find module 'pkgcloud'
khyati0212 commented 6 years ago

I am trying to solve this error for whole afternoon but could not find anything and finally i started creating new repository.

atherdon commented 6 years ago

push code on this repo and i'll be able to take a look. i assume it's usual for img upload thng - something with folder rights. don't worry and maybe take a break :1st_place_medal:

khyati0212 commented 6 years ago

Oh. I saw resolution online and it suggested to install npm pkgcloud as well but it didn't work

khyati0212 commented 6 years ago

I uploaded all the files except node_modules folder. It is giving some error. I will check them after 11 pm. I have my art class right now.

atherdon commented 6 years ago

good! will check it right now

atherdon commented 6 years ago

i didn't see package files. i think you should upload all files(not node_modules module) at root folder

atherdon commented 6 years ago

I'll use my own package.json while you push it. maybe will be able to debug some side-effects :) more comments soon

khyati0212 commented 6 years ago

I tried uploading all the files again can you check if they are visible or not?

atherdon commented 6 years ago

yes, it works. will create some task related to "make things easier for you with git"

atherdon commented 6 years ago

@khyati0212 delete your previous folder. clone an updated code version into a new one. don't cheat :)

atherdon commented 6 years ago

plz close this issue when it'll work on your side too

khyati0212 commented 6 years ago

It worked.

Remove node_modules

rm -fr node_modules

Reinstall packages

npm i

with these commands

atherdon commented 6 years ago

so you're cheated?

On 21-Mar-2018 at 12:48 AM, Khyati wrote:

It worked. Remove node_modules

rm -fr node_modules Reinstall packages

npm i

with these commands

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ChickenKyiv/api-extended-database/issues/10#issuecomment-374805589, or mute the thread https://github.com/notifications/unsubscribe-auth/ABZrDnp4ptRTS320v2aKgA8uQj-XIc_oks5tgaNvgaJpZM4SxHXH .