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: string and indent should be strings #21

Closed
l3ender opened this issue Jan 7, 2021 · 0 comments
Closed

Error: string and indent should be strings #21

l3ender opened this issue Jan 7, 2021 · 0 comments

Comments

@l3ender
Copy link

l3ender commented Jan 7, 2021

I'm seeing the following on Windows using git bash.

I have a directory and I want to remove it:

> ls -la dist
total 8
drwxr-xr-x 1 rbender 1049089 0 Dec 22 09:11 ./
drwxr-xr-x 1 rbender 1049089 0 Jan  7 17:31 ../
drwxr-xr-x 1 rbender 1049089 0 Dec 22 09:11 my-app/

I have installed version 3.0.1 of del-cli. When using I am seeing the following error:

> npx del-cli dist

D:\repos\my-app\node_modules\redent\node_modules\indent-string\index.js:6
                throw new TypeError('`string` and `indent` should be strings');
                ^

TypeError: `string` and `indent` should be strings
    at module.exports (D:\repos\my-app\node_modules\redent\node_modules\indent-string\index.js:6:9)
    at module.exports (D:\repos\my-app\node_modules\redent\index.js:5:50)
    at meow (D:\repos\my-app\node_modules\meow\index.js:76:13)
    at Object.<anonymous> (D:\repos\my-app\node_modules\del-cli\cli.js:6:13)
    at Module._compile (internal/modules/cjs/loader.js:688:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
    at Module.load (internal/modules/cjs/loader.js:598:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
    at Function.Module._load (internal/modules/cjs/loader.js:529:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:741:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] clean: `del-cli dist`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] clean script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Other detail:

> npm --version
6.4.1
> node --version
v10.13.0

Am I doing something wrong? Thanks!

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

1 participant