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

Specify mkdirp version in order to solve "invalid options argument" error #97

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pablo98ad
Copy link

@pablo98ad pablo98ad commented Jun 9, 2023

We need to specify the version of mkdirp to avoid incompatibilities with other libraries, for example node-sass

Example of error:

C:\APPS\react-example\node_modules\mkdirp\lib\opts-arg.js:13
    throw new TypeError('invalid options argument')
    ^

TypeError: invalid options argument
    at optsArg (C:\APPS\react-example\node_modules\mkdirp\lib\opts-arg.js:13:11)
    at mkdirp (C:\APPS\react-example\node_modules\mkdirp\index.js:11:10)
    at writeFile (C:\APPS\react-example\node_modules\react-clear-cache\bin\cli.js:37:3)
    at Object.<anonymous> (C:\APPS\react-example\node_modules\react-clear-cache\bin\cli.js:23:1)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47

image

@nucab

@pablo98ad pablo98ad changed the title specify mkdirp version in order to solve "invalid options argument" error Specify mkdirp version in order to solve "invalid options argument" error Jun 9, 2023
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

Successfully merging this pull request may close these issues.

1 participant