-
Notifications
You must be signed in to change notification settings - Fork 93
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
TypeError: Expected cwd
to be of type string
but received type undefined
#265
Comments
I have the exact same error. NPM Version: 6.4.1 |
Have you tried a fresh installation? |
I have, weirdly enough just running the example in postcss/autoprefixer works as well, so it must be a version issue, but npm ls lists the same versions
|
Yeah, there was a sub-dependency way down in the dependency tree that had a bug and broke semver. Your postcss-cli versions will be the same; that's expected, but what's important is that the sub-dependency is updated. |
So manually forcing the sub dep version should fix it (and which)? |
It does indeed, after manually installing the globby version (and then doing a fresh install leaving globby out of the package.json) it runs. I think is seems to be a cache issue or something even though the cache should be self healing |
Yes, this was fixed in sindresorhus/globby#99. Reinstalling |
|
The best would be to update globby to version ^9.0.0 in this package. |
@targos PR welcome |
This should fix imagemin#311 like @DonghyukJacobJang This is a bug with globby which has happened across many repos: References: Stylelint => stylelint/stylelint#3885 PostCSS => postcss/postcss-cli#265
When executing any cli command it fails and gives the error below, this however does work if I use yarn. (has also been referenced here: #264)
Example command (the style.css is just an empty file):
Stacktrace:
The text was updated successfully, but these errors were encountered: