question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Cannot find module 'axios'

See original GitHub issue

Hi, I’ve just fetched the latest docker nightly build and now the docker is not starting due to following error: `Error: Cannot find module ‘axios’ Require stack:

  • /app/twitch.js
  • /app/app.js at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15) at Function.Module._load (internal/modules/cjs/loader.js:841:27) at Module.require (internal/modules/cjs/loader.js:1025:19) at require (internal/modules/cjs/helpers.js:72:18) at Object.<anonymous> (/app/twitch.js:2:13) at Module._compile (internal/modules/cjs/loader.js:1137:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:1157:10) at Module.load (internal/modules/cjs/loader.js:985:32) at Function.Module._load (internal/modules/cjs/loader.js:878:14) at Module.require (internal/modules/cjs/loader.js:1025:19) at require (internal/modules/cjs/helpers.js:72:18) at Object.<anonymous> (/app/app.js:30:18) at Module._compile (internal/modules/cjs/loader.js:1137:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:1157:10) at Module.load (internal/modules/cjs/loader.js:985:32) at Function.Module._load (internal/modules/cjs/loader.js:878:14) { code: ‘MODULE_NOT_FOUND’, requireStack: [ ‘/app/twitch.js’, ‘/app/app.js’ ] }`

best regards and thanks for this great tool 🥇

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Tzahi12345commented, Nov 29, 2020

No problem! Glad it’s working for you 😃

I’ll try not to forget to commit the dependencies next time lol

1reaction
Tzahi12345commented, Nov 29, 2020

Ah this is my fault, last night I pushed an update and I forgot to update the backend dependencies to reflect the changes. In about an hour the build should be fixed, thanks for letting me know! Let me know if you run into any other issues 😃

Relevant commit

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find module 'axios' - node.js - Stack Overflow
Go to the functions directory and install axios. This will declare the axios dependency in the package.json for you. It works for me....
Read more >
[ts] cannot find module 'axios'. · Issue #1221 - GitHub
When I create a .ts file and try to import axios it complains that it cannot find the module 'axios'. If I create...
Read more >
Axios - npm
Promise based HTTP client for the browser and node.js. Latest version: 1.2.1, last published: 21 days ago. Start using axios in your project ......
Read more >
Why do I receive "cannot find module axios" When I run a ...
Now that you have that, in the same root directory, run npm install axios --save-dev. This will install it locally for this project....
Read more >
cannot find module 'axios' or its corresponding type ...
run this in your project directory npm install axios --save.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found