LoginSignup
2
2

More than 5 years have passed since last update.

npm initでエラーが起きた

Last updated at Posted at 2015-05-11

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とかそんな感じにして解決しました。

【参考】
https://github.com/npm/npm/issues/7927

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2