npm init
したらエラーが起きて何事だろうと思って調べた。
npm ERR! Darwin 14.3.0
npm ERR! argv "/Users/naru/.nodebrew/iojs/v1.8.1/bin/iojs" "/Users/naru/.nodebrew/current/bin/npm" "init"
npm ERR! node v1.8.1
npm ERR! npm v2.8.3
npm ERR! Cannot read property 'join' of undefined
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /Users/naru/GitHub/vccwGulp/npm-debug.log
ひとまず情報として価値がありそうなのがここ
npm ERR! Cannot read property 'join' of undefined
で、ぐぐって知ったんですけど、package.jsonのファイル名には大文字使っちゃいけないんですね。
sampleNpmみたいなキャメルケースにしてる場合はsample-npmとかそんな感じにして解決しました。