yarn run serveが失敗した
こちらを試していたのですが、
いくらかいじった上で
$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/
という感じで、無事立ち上がりました。
Author And Source
この問題について(yarn run serveが失敗した), 我々は、より多くの情報をここで見つけました https://qiita.com/masa_nagano/items/a629c3889ecde77a66f0著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .