nucab / react-clear-cache

MIT License
67 stars 49 forks source link

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

Open pablo98ad opened 1 year ago

pablo98ad commented 1 year ago

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