cli
cli copied to clipboard
Netlify-cli requires axios - why?
Describe the bug
I have recently setup a remix.run app with storyblok integrated.
I tried to deploy via terminal commands and it fails on an axios error. I don't use axios and remix.run doesn't either (as far as I'm aware), so I am confused as to why I get this error and can only assume it's netlify-cli at the moment.
If I install axios manually then it fixes the error, but isn't the root cause, so need to know why.
To Reproduce
Steps to reproduce the behavior:
- Clone - https://github.com/black-tape-project/remix-storyblok
- Remove axios from package.json
- Try to deploy to Netlify using terminal commands
Configuration
It's all public preview tokens, nothing sensitive. Repo can be downloaded and run without need for setup (should work).
Expected behavior
It should deploy.
CLI Output
⠧ Hashing build/routes/$slug-36ITMZ3P.js.map › Warning:
{
"code": "MODULE_NOT_FOUND",
"requireStack": [
"/usr/local/lib/node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/dist/runtimes/node/bundlers/zisi/resolve.js"
]
}
› Error: In file "/Users/stephen/sourcetree/blog/remix-storyblok/netlify/functions/server/index.js"
Cannot find module 'axios'
Require stack:
- /usr/local/lib/node_modules/netlify-cli/node_modules/@netlify/zip-it-and-ship-it/dist/runtimes/node/bundlers/zisi/resolve.js