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

npm install mysql failed #123

Open
kobeliuke opened this issue Jul 6, 2024 · 1 comment
Open

npm install mysql failed #123

kobeliuke opened this issue Jul 6, 2024 · 1 comment
Assignees

Comments

@kobeliuke
Copy link

πŸ› 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

  • πŸ“¦ Node version: v20.15.0
  • πŸ’» OS: darwin arm64

πŸ’‘ Possible Solution

πŸ“Ί Additional context/Screenshots

@kobeliuke kobeliuke changed the title Error: Please add a title npm install mysql failed Jul 6, 2024
@pct-tploeger
Copy link

I encountered the same issue today. Deleting the empty "yarn.lock" folder in my strapi project worked for me.

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

3 participants