We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6bc772 commit 9a3609aCopy full SHA for 9a3609a
1 file changed
bin/ncm-cli.js
@@ -43,7 +43,7 @@ async function main () {
43
})
44
45
46
- if(typeof argv.dir !== 'string'){
+ if(argv.dir && typeof argv.dir !== 'string'){
47
handleError('ERR_INVALID_ARG_TYPE: --dir or -d must to be a string')
48
}
49
0 commit comments