Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

internal/modules/cjs/loader.js:589 #1048

Open
shehrozeikram opened this issue Oct 25, 2018 · 8 comments
Open

internal/modules/cjs/loader.js:589 #1048

shehrozeikram opened this issue Oct 25, 2018 · 8 comments

Comments

@shehrozeikram
Copy link

No description provided.

@benjaminMaine
Copy link

benjaminMaine commented Nov 5, 2018

Same problem while restarting my project on a empty new Macbook pro 2018 from a git repo

 node index.js
internal/modules/cjs/loader.js:589
    throw err;
    ^

Error: Cannot find module './helpers/update/applyTimestampsToChildren'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:587:15)
    at Function.Module._load (internal/modules/cjs/loader.js:513:25)
    at Module.require (internal/modules/cjs/loader.js:643:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (/Users/benjaminmaine/WORKSPACE/book-help-comprehension-translator/node_modules/mongoose/lib/schema.js:11:35)
    at Module._compile (internal/modules/cjs/loader.js:707:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:718:10)
    at Module.load (internal/modules/cjs/loader.js:605:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:544:12)
    at Function.Module._load (internal/modules/cjs/loader.js:536:3)
    at Module.require (internal/modules/cjs/loader.js:643:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (/Users/benjaminmaine/WORKSPACE/book-help-comprehension-translator/node_modules/mongoose/lib/index.js:13:16)
    at Module._compile (internal/modules/cjs/loader.js:707:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:718:10)
    at Module.load (internal/modules/cjs/loader.js:605:32)
error Command failed with exit code 1.

@benjaminMaine
Copy link

benjaminMaine commented Nov 5, 2018

Just a problem with my devs configuration keys in my case.
Maybe can find a way with that check il you succeed in accessing your database

@tuanticker
Copy link

I took the npm folder in the installation directory of nodejs "\node_modules\npm" copy them to "C:\Users% User%\AppData\Roaming\npm\node_modules\npm " So the problem is solved =))

@delacruzjames
Copy link

Try this works on my end.

  • rm -rf node_modules
  • rm package-lock.json
  • npm install
  • npm start

@benjaminMaine
Copy link

Thanks a lot @delacruzjames it works with your solution.
Thanks a lot !

@Jalever
Copy link

Jalever commented Mar 11, 2019

Try this works on my end.

* rm -rf  node_modules

* rm package-lock.json

* npm install

* npm start

Thanks a lot. 👍

@stonedcoder
Copy link

This doesn't work on my end .

  • rm -rf node_modules

  • rm package-lock.json

  • npm install

  • npm start

Screenshot 2019-05-14 at 12 01 52 pm

@sdr46
Copy link

sdr46 commented Feb 5, 2021

node index.js

This gives this error because the file and path cannot be found. It becomes an idea for friends who will experience this problem in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants