LoginSignup
0
1

More than 3 years have passed since last update.

yarn run serveが失敗した

Posted at

こちらを試していたのですが、
いくらかいじった上で

$yarn run serve

としたら、

yarn run v1.17.3
$ vue-cli-service serve
 INFO  Starting development server...
 10% building 2/2 modules 0 activeevents.js:180                              
      throw er; // Unhandled 'error' event
      ^

Error: ENOSPC: System limit for number of file watchers reached, watch...
(略)

みたいな感じなエラーが出まして、
色々と調べた結果、

こちらが参考に。以下は、上記リンク先にあった記述です。

$cat /proc/sys/fs/inotify/max_user_watches
8192

この値が大きいのか小さいのか、正直そこまで把握していませんが、
とりあえず増やしとけということで、

$sudo vi /etc/sysctl.conf
最終行に以下を追加
fs.inotify.max_user_watches = 819200

kernelを再読み込み

$sudo /sbin/sysctl -p
$ cat /proc/sys/fs/inotify/max_user_watches
819200

再度

$yarn run serve

とすると、

You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.

  App running at:
  - Local:   http://localhost:8080/ 
  - Network: http://xxx.xxx.xxx.xxx:8080/

という感じで、無事立ち上がりました。

0
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
0
1