Skip to content

Commit faa4a89

Browse files
authored
Merge pull request #237 from nodesource/italo/fixing-bug-dir-param
bin: bug fix
2 parents a6bc772 + 9a3609a commit faa4a89

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)