strapi-community / strapi-tool-dockerize

Easy add support for docker to your strapi project
MIT License
543 stars 35 forks source link

npm install mysql failed #123

Open kobeliuke opened 3 months ago

kobeliuke commented 3 months ago

🐛 Bug Report

🤷‍♀️ What did you do

⛔️ Error log

Command failed with exit code 1: npm install mysql npm error code ERR_INVALID_ARG_TYPE npm error The "path" argument must be of type string or an instance of Buffer or URL. Received null

npm error A complete log of this run can be found in: /Users/will/.npm/_logs/2024-07-06T04_49_32_742Z-debug-0.log

🕵️‍♀️ Stack trace

Error: Command failed with exit code 1: npm install mysql
npm error code ERR_INVALID_ARG_TYPE
npm error The "path" argument must be of type string or an instance of Buffer or URL. Received null

npm error A complete log of this run can be found in: /Users/will/.npm/_logs/2024-07-06T04_49_32_742Z-debug-0.log
    at makeError (/Users/will/.npm/_npx/a642ee8303c0fc2f/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Users/will/.npm/_npx/a642ee8303c0fc2f/node_modules/execa/index.js:118:26)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async installDependecies (/Users/will/.npm/_npx/a642ee8303c0fc2f/node_modules/@strapi-community/dockerize/core/dependencies.js:21:3)
    at async /Users/will/.npm/_npx/a642ee8303c0fc2f/node_modules/@strapi-community/dockerize/index.js:63:4

🙇‍♀️ Expected behavior/code

A clear and concise description of what you expected to happen (or code).

👩‍💻 Environment

💡 Possible Solution

📺 Additional context/Screenshots