strapi-community / strapi-tool-dockerize

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

yarnError: Command failed with exit code 1: yarn add mysqlError: EISDIR: illegal operation on a directory, read at Object.readSync (node:fs:748:3) at tryReadSync (node:fs:448:20) at Object.readFileSync (node:fs:494:19) at onUnexpectedError (/Users/lanethompson/.nvm/versions/node/v18.13.0/lib/node_modules/yarn/lib/cli.js:88622:100) at /Users/lanethompson/.nvm/versions/node/v18.13.0/lib/node_modules/yarn/lib/cli.js:88734:9yarn add v1.22.19 #72

Closed lanestp closed 1 year ago

lanestp commented 1 year ago

🐛 Bug Report

🤷‍♀️ What did you do

⛔️ Error log

Command failed with exit code 1: yarn add mysql Error: EISDIR: illegal operation on a directory, read at Object.readSync (node:fs:748:3) at tryReadSync (node:fs:448:20) at Object.readFileSync (node:fs:494:19) at onUnexpectedError (/Users/lanethompson/.nvm/versions/node/v18.13.0/lib/node_modules/yarn/lib/cli.js:88622:100) at /Users/lanethompson/.nvm/versions/node/v18.13.0/lib/node_modules/yarn/lib/cli.js:88734:9 yarn add v1.22.19

🕵️‍♀️ Stack trace

Error: Command failed with exit code 1: yarn add mysql
Error: EISDIR: illegal operation on a directory, read
    at Object.readSync (node:fs:748:3)
    at tryReadSync (node:fs:448:20)
    at Object.readFileSync (node:fs:494:19)
    at onUnexpectedError (/Users/lanethompson/.nvm/versions/node/v18.13.0/lib/node_modules/yarn/lib/cli.js:88622:100)
    at /Users/lanethompson/.nvm/versions/node/v18.13.0/lib/node_modules/yarn/lib/cli.js:88734:9
yarn add v1.22.19
    at makeError (/Users/lanethompson/.npm/_npx/a642ee8303c0fc2f/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Users/lanethompson/.npm/_npx/a642ee8303c0fc2f/node_modules/execa/index.js:118:26)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async installDependecies (/Users/lanethompson/.npm/_npx/a642ee8303c0fc2f/node_modules/@strapi-community/dockerize/core/dependencies.js:21:3)
    at async /Users/lanethompson/.npm/_npx/a642ee8303c0fc2f/node_modules/@strapi-community/dockerize/index.js:62:4

🙇‍♀️ Expected behavior/code

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

👩‍💻 Environment

💡 Possible Solution

📺 Additional context/Screenshots

Eventyret commented 1 year ago

Try delete your yarn.lock file / folder and run the tool again.