Error: Cannot find module 'axios'
See original GitHub issueHi, 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:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
No problem! Glad it’s working for you 😃
I’ll try not to forget to commit the dependencies next time lol
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