vue npm run dev啟動報錯

2021-09-29 02:58:29 字數 2734 閱讀 8442

> [email protected] dev /home/haibin/webstormprojects/vueproject/tabbar

> vue-cli-service serve

info starting development server...

10% building 2/2 modules 0 activeevents.js:174

throw er; // unhandled 'error' event

^error: enospc: system limit for number of file watchers reached, watch

'/home/haibin/webstormprojects/vueproject/tabbar/public'

at fswatcher.start (internal/fs/watchers.js:165:26)

at object.watch (fs.js:1258:11)

at createfswatchinstance (/home/haibin/webstormprojects/vueproject/tabbar/node_modules/chokidar/lib/nodefs-handler.js:38:15)

at setfswatchlistener (/home/haibin/webstormprojects/vueproject/tabbar/node_modules/chokidar/lib/nodefs-handler.js:81:15)

at fswatcher.nodefshandler._watchwithnodefs (/home/haibin/webstormprojects/vueproject/tabbar/node_modules/chokidar/lib/nodefs-handler.js:233:14)

at fswatcher.nodefshandler._handledir (/home/haibin/webstormprojects/vueproject/tabbar/node_modules/chokidar/lib/nodefs-handler.js:429:19)

at fswatcher.

(/home/haibin/webstormprojects/vueproject/tabbar/node_modules/chokidar/lib/nodefs-handler.js:477:19)

at fswatcher.

(/home/haibin/webstormprojects/vueproject/tabbar/node_modules/chokidar/lib/nodefs-handler.js:482:16)

at fsreqwrap.oncomplete (fs.js:154:5)

emitted 'error' event at:

at fswatcher._handleerror (/home/haibin/webstormprojects/vueproject/tabbar/node_modules/chokidar/index.js:260:10)

at createfswatchinstance (/home/haibin/webstormprojects/vueproject/tabbar/node_modules/chokidar/lib/nodefs-handler.js:40:5)

at setfswatchlistener (/home/haibin/webstormprojects/vueproject/tabbar/node_modules/chokidar/lib/nodefs-handler.js:81:15)

[... lines matching original stack trace ...]

at fsreqwrap.oncomplete (fs.js:154:5)

npm err! code elifecycle

npm err! errno 1

npm err! [email protected] dev: `vue-cli-service serve`

npm err! exit status 1

npm err!

npm err! failed at the [email protected] dev script.

npm err! this is probably not a problem with npm. there is likely additional logging output above.

npm err! a complete log of this run can be found in:

npm err! /home/haibin/.npm/_logs/2019-10-28t12_07_46_419z-debug.log

npm install

npm run dev

原來是我系統的原因我使用的是deepin系統根據上文修改後已經解決

即在終端輸入

echo fs.inotify.max_user_watches=524288 |

sudo

tee -a /etc/sysctl.conf &&

sudo sysctl -p

sudo sysctl --system

如果報錯不是這種

可以檢視package.json的scripts啟動條件是dev還是serve

rpm mysql 啟動報錯 mysql 啟動報錯

今天在centos5.2 64位機器上安裝mysql 5.1.32 linux x86 64 icc glibc23.tar.gz,啟動服務出現報錯 starting mysql.manager of pid file quit without updating file.failed 平時裝mys...

Oracle RAC啟動報ORA 00304錯誤

oracle rac啟動報ora 00304錯誤 最近在vmware中實驗rac,啟動乙個節點再啟動另外乙個後報錯如下 ora 00304 requested instance number is busy 當節點rac01啟動後就不能啟動rac02 或者當rac02啟動後就不能啟動rac01 反正...

虛機無法啟動報NOSTATE

問題 1 檢視虛機狀態為nostate 2 檢視virsh list all grep 為空 3 進入 var lib nova instance 為空 解 1 造成此問題是冷遷libvirt檔案沒有遷移過去 2 nova migration list grep 檢視遷移記錄,找到之前遷移的,或批量...