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

Error thrown with mkdirp #31

Open
kellykampen opened this issue Dec 15, 2020 · 2 comments
Open

Error thrown with mkdirp #31

kellykampen opened this issue Dec 15, 2020 · 2 comments

Comments

@kellykampen
Copy link

Since a few versions back I am now getting this error when I attempt to run the prebuild cli.

> ./node_modules/react-clear-cache/bin/cli.js

./node_modules/mkdirp/lib/opts-arg.js:13
    throw new TypeError('invalid options argument')
    ^

TypeError: invalid options argument
    at optsArg (/.../node_modules/mkdirp/lib/opts-arg.js:13:11)
    at mkdirp (/.../node_modules/mkdirp/index.js:11:10)
    at writeFile (/.../node_modules/react-clear-cache/bin/cli.js:37:3)
    at Object.<anonymous> (/.../node_modules/react-clear-cache/bin/cli.js:23:1)

Any ideas on how to get around this?

Thanks in advance .

@nucab
Copy link
Owner

nucab commented Dec 15, 2020

@kellykampen , can you try to delete your node_modules and package-lock.json and re-install.

@kellykampen
Copy link
Author

kellykampen commented Dec 16, 2020

@noahjohn9259 Tried that a few times, and again just now to be certain. Still have the same issue.
It seems that some of the packages I use have upgraded to mkdirp 1.0 instead of the older 0.5. In your react-clear-cache no mkdirp version is set. I think this may potentially be the culprit, as it's trying to use the newer version which now works on promises only.

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

2 participants