1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

久々にnpm inistallの後gruntしたらエラーが出た

Posted at

発生した問題

  • プロジェクトをgit cloneした後、npm installした。(usbメモリが飛んだので一からcloneした)
  • grunt serveしたらエラーが出た。

発生したエラー
TypeError: Cannot read property 'prototype' of undefined

原因

  • grunt --verbose と打って見ると、grunt-connect-proxyに問題があることがわかる。
  • 調べてみると、grunt-connect-proxyが依存している、eventemitter3に問題があるらしい。

drewzboto/grunt-connect-proxy issue #95

解決方法

cd node_modules/grunt-connect-proxy/node_modules/http-proxy
npm install eventemitter3@0.1.6
  • eventemitter3のバージョンを0.1.6にするといいらしい。
1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?