Skip to content

Commit 9a3609a

Browse files
committed
bin: bug fix
1 parent a6bc772 commit 9a3609a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/ncm-cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ async function main () {
4343
})
4444

4545

46-
if(typeof argv.dir !== 'string'){
46+
if(argv.dir && typeof argv.dir !== 'string'){
4747
handleError('ERR_INVALID_ARG_TYPE: --dir or -d must to be a string')
4848
}
4949

0 commit comments

Comments
 (0)