-
Notifications
You must be signed in to change notification settings - Fork 3k
npm init
ERR Cannot call method 'join' of undefined (init-package-json/default-input.js:51:45)
#7927
Comments
You've stepped into a bug in the error reporting in in The error that it's failing to report is that we don't allow capital letters in package names. Node modules typically use kebob case, so a more idiomatic package name would be Meanwhile, I've created a bug report over at npm/init-package-json#37 When it's fixed it'll find its way back into I'm going to close this ticket in favor of the one over at init-package-json. Thanks for reporting this! |
Thanks for answer..but It would be nice if "package name should be capital" be message in error .. I just spent 15 minutes in uninstalling / reinstalling npm . Finally bump onto this issue. |
The way I see it, it will be fixed via iarna's bug report. Thanks iarna |
Thanks Shawn and Iarna, just ran into this myself, I thought I was going crazy for a minute. |
Yep, here as well. Please make this into an error message. |
Looks like this was fixed in npm/init-package-json#40 / 98ad98c / 2.10.0 |
I don't know! |
The version is too low |
It's the first time I ever see
npm init
fail. I must say I'm really surprised as I didn't update npm or anything either.Also, it only fails in one directory. If I go to a different directory and do the same thing, it works just fine. The directory in which it doesn't work doesn't have anything special in it either, just a few files, a few directories, and
.git
directory.Basically, I just ran
npm init
, pressed enter to keep the default package name, and it failed. I thencat npm-debug.log
. The full output is below.The text was updated successfully, but these errors were encountered: